1
0
Fork 0

added smart_rmtree utility function

This commit is contained in:
Kim, Jimin 2022-03-16 23:08:20 +09:00
parent a445956ed5
commit 6db55b5a8e

View file

@ -3,6 +3,7 @@ from .constants import tmp_dir
from importlib.machinery import SourceFileLoader
from os import system, makedirs
from os.path import dirname
from shutil import rmtree
import zipfile
@ -44,6 +45,13 @@ def smart_mkdir(path: str):
pass
def smart_rmtree(path):
try:
rmtree(path)
except:
pass
def copy_file(src: str, dst: str, mode="644"):
"""
Copies src to dst.