added TODO-shki

This commit is contained in:
Mikhail Tergoev
2025-03-05 19:16:59 +03:00
parent 924733b91d
commit 5e56b2c930
2 changed files with 36 additions and 13 deletions

View File

@ -41,12 +41,13 @@ def try_remove_file(path):
except Exception as e:
log.error(f"failed to remove file: {e}")
def create_new_dir(path):
if not os.path.exists(path):
try:
os.makedirs(path)
except Exception as e:
log.error(f"failed to create directory: {e}")
def create_new_dir(*path):
for i in path:
if not os.path.exists(i):
try:
os.makedirs(i)
except Exception as e:
log.error(f"failed to create directory: {e}")
def try_force_link_dir(path, link):
if not os.path.exists(path):