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

posixpath.isfile

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


Import

import posixpath
from posixpath import isfile

Signature & Overview

posixpath.isfile(path)

Test whether a path is a regular file

Usage

import posixpath

assert posixpath.isfile('.') is False

Gotchas

REPL Inspect

from posixpath import isfile
help(isfile)

Linked from

Related notes