On this page
  1. ntpath.isfile
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

ntpath.isfile

Prev: ntpath.isdir | Up: ntpath | Next: ntpath.isjunction
Rel: ntpath.abspath, ntpath.basename, ntpath.commonpath, ntpath.commonprefix
Ref: docs.python.org — ntpath.isfile
Tags: #public #python3 #stdlib #ntpath


Import

import ntpath
from ntpath import isfile

Signature & Overview

ntpath.isfile(path)

Test whether a path is a regular file

Usage

import ntpath

assert ntpath.isfile('.') is False

Gotchas

REPL Inspect

from ntpath import isfile
help(isfile)

Linked from

Related notes