MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / is_dir

Method is_dir

tools/python-3.11.9-amd64/Lib/pathlib.py:1245–1259  ·  view source on GitHub ↗

Whether this path is a directory.

(self)

Source from the content-addressed store, hash-verified

1243 return True
1244
1245 def is_dir(self):
1246 """
1247 Whether this path is a directory.
1248 """
1249 try:
1250 return S_ISDIR(self.stat().st_mode)
1251 except OSError as e:
1252 if not _ignore_error(e):
1253 raise
1254 # Path doesn't exist or is a broken symlink
1255 # (see http://web.archive.org/web/20200623061726/https://bitbucket.org/pitrou/pathlib/issues/12/ )
1256 return False
1257 except ValueError:
1258 # Non-encodable path
1259 return False
1260
1261 def is_file(self):
1262 """

Callers 11

mkdirMethod · 0.95
is_mountMethod · 0.95
_walkFunction · 0.45
_fwalkFunction · 0.45
_select_fromMethod · 0.45
_iterate_directoriesMethod · 0.45
_copytreeFunction · 0.45
_rmtree_isdirFunction · 0.45
_rmtree_safe_fdFunction · 0.45
_iterdirFunction · 0.45
_iter_submodulesFunction · 0.45

Calls 3

statMethod · 0.95
S_ISDIRFunction · 0.90
_ignore_errorFunction · 0.85

Tested by

no test coverage detected