Just ignore all OSError for rm_rf
This commit is contained in:
parent
518ec36511
commit
02f3d7a25e
1 changed files with 2 additions and 3 deletions
|
@ -133,9 +133,8 @@ def make_zip(zip_file_path, files, dirs):
|
||||||
def rm_rf(path):
|
def rm_rf(path):
|
||||||
try:
|
try:
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
except OSError as e:
|
except OSError:
|
||||||
if e.errno != errno.ENOENT and e.errno != errno.EIO:
|
pass
|
||||||
raise
|
|
||||||
|
|
||||||
|
|
||||||
def safe_unlink(path):
|
def safe_unlink(path):
|
||||||
|
|
Loading…
Reference in a new issue