MCPcopy
hub / github.com/pyload/pyload / exists

Function exists

module/plugins/internal/misc.py:465–474  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

463
464
465def exists(path):
466 path = fs_encode(path)
467
468 if os.name == "nt":
469 if path.startswith("\\\\"):
470 return os.path.exists('\\\\?\\UNC\\' + path[2:])
471 else:
472 return os.path.exists('\\\\?\\' + os.path.normpath(os.path.join(os.getcwd(), path)))
473 else:
474 return os.path.exists(path)
475
476
477def remove(path, trash=True):

Callers 15

do_downloadMethod · 0.90
quitInstanceMethod · 0.85
startMethod · 0.85
check_fileMethod · 0.85
processCommandMethod · 0.85
mainFunction · 0.85
tryReconnectMethod · 0.85
checkVersionMethod · 0.85
setupMethod · 0.85
_checkVersionMethod · 0.85
_migrateUserMethod · 0.85
runMethod · 0.85

Calls 2

joinMethod · 0.80
fs_encodeFunction · 0.70

Tested by

no test coverage detected