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

Method exists

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

Whether this path exists.

(self)

Source from the content-addressed store, hash-verified

1228 # Convenience functions for querying the stat results
1229
1230 def exists(self):
1231 """
1232 Whether this path exists.
1233 """
1234 try:
1235 self.stat()
1236 except OSError as e:
1237 if not _ignore_error(e):
1238 raise
1239 return False
1240 except ValueError:
1241 # Non-encodable path
1242 return False
1243 return True
1244
1245 def is_dir(self):
1246 """

Callers 15

create_archiveFunction · 0.95
is_mountMethod · 0.95
mainFunction · 0.45
makedirsFunction · 0.45
renamesFunction · 0.45
findFunction · 0.45
get_sourceMethod · 0.45
getsourcefileFunction · 0.45
cliFunction · 0.45
_init_pathinfoFunction · 0.45
addpackageFunction · 0.45

Calls 2

statMethod · 0.95
_ignore_errorFunction · 0.85

Tested by 1

_module_relative_pathFunction · 0.36