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

posixpath.isdir

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


Import

import posixpath
from posixpath import isdir

Signature & Overview

posixpath.isdir(s)

Return true if the pathname refers to an existing directory.

Usage

import posixpath

assert posixpath.isdir('.') is True

Gotchas

REPL Inspect

from posixpath import isdir
help(isdir)

Linked from

Related notes