MCPcopy
hub / github.com/cool-RR/PySnooper / is_dir

Method is_dir

tests/mini_toolbox/pathlib.py:1559–1570  ·  view source on GitHub ↗

Whether this path is a directory.

(self)

Source from the content-addressed store, hash-verified

1557 return True
1558
1559 def is_dir(self):
1560 """
1561 Whether this path is a directory.
1562 """
1563 try:
1564 return S_ISDIR(self.stat().st_mode)
1565 except OSError as e:
1566 if e.errno not in (ENOENT, ENOTDIR):
1567 raise
1568 # Path doesn't exist or is a broken symlink
1569 # (see https://bitbucket.org/pitrou/pathlib/issue/12/)
1570 return False
1571
1572 def is_file(self):
1573 """

Callers 3

mkdirMethod · 0.95
try_iterMethod · 0.80
try_iterMethod · 0.80

Calls 1

statMethod · 0.95

Tested by

no test coverage detected