MCPcopy
hub / github.com/pyload/pyload / remove

Function remove

module/plugins/internal/misc.py:477–490  ·  view source on GitHub ↗
(path, trash=True)

Source from the content-addressed store, hash-verified

475
476
477def remove(path, trash=True):
478 path = fs_encode(path)
479
480 if not exists(path):
481 return
482
483 if trash:
484 send2trash.send2trash(path)
485
486 elif os.path.isdir(path):
487 shutil.rmtree(path, ignore_errors=True)
488
489 else:
490 os.remove(path)
491
492
493def fsjoin(*args):

Callers 10

cleanTreeMethod · 0.85
startMethod · 0.85
_checkVersionMethod · 0.85
_copyChunksMethod · 0.85
_downloadMethod · 0.85
validateFileFunction · 0.85
clearMethod · 0.85
decryptCaptchaMethod · 0.85
checkDownloadMethod · 0.85
removeMethod · 0.85

Calls 3

existsFunction · 0.85
fs_encodeFunction · 0.70
removeMethod · 0.45

Tested by

no test coverage detected