MCPcopy Index your code
hub / github.com/python/cpython / S_ISDIR

Function S_ISDIR

Lib/stat.py:50–52  ·  view source on GitHub ↗

Return True if mode is from a directory.

(mode)

Source from the content-addressed store, hash-verified

48# Functions to test for each file type
49
50def S_ISDIR(mode):
51 """Return True if mode is from a directory."""
52 return S_IFMT(mode) == S_IFDIR
53
54def S_ISCHR(mode):
55 """Return True if mode is from a character special device file."""

Callers 3

is_dirMethod · 0.90
is_dirMethod · 0.90
is_dirMethod · 0.90

Calls 1

S_IFMTFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…