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

Function S_ISREG

Lib/stat.py:62–64  ·  view source on GitHub ↗

Return True if mode is from a regular file.

(mode)

Source from the content-addressed store, hash-verified

60 return S_IFMT(mode) == S_IFBLK
61
62def S_ISREG(mode):
63 """Return True if mode is from a regular file."""
64 return S_IFMT(mode) == S_IFREG
65
66def S_ISFIFO(mode):
67 """Return True if mode is from a FIFO (named pipe)."""

Callers 3

is_fileMethod · 0.90
is_fileMethod · 0.90
is_fileMethod · 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…