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

genericpath.isdir

Prev: genericpath.isdevdrive | Up: genericpath | Next: genericpath.isfile
Rel: genericpath.commonprefix, genericpath.exists, genericpath.getatime, genericpath.getctime
Ref: docs.python.org — genericpath.isdir
Tags: #public #python3 #stdlib #genericpath


Import

import genericpath
from genericpath import isdir

Signature & Overview

genericpath.isdir(s)

Return true if the pathname refers to an existing directory.

Usage

import os

assert os.path.isdir(".") is True

Gotchas

REPL Inspect

from genericpath import isdir
help(isdir)

Linked from

Related notes