Reverse index json file

This commit is contained in:
relikd
2020-09-15 20:39:39 +02:00
parent c139886c61
commit 71bd8e2a43
4 changed files with 83 additions and 8 deletions

View File

@@ -137,7 +137,14 @@ def mv(path, to, printOmitPrefix=None):
Path(path).rename(to)
def rm(path):
def rm_file(file_path):
try:
os.remove(file_path)
except FileNotFoundError:
pass
def rm_dir(path):
try:
shutil.rmtree(path)
except Exception: