1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

rmtree ignores errors

This commit is contained in:
Alex Xu
2025-08-03 11:41:53 -07:00
parent 55193119fb
commit a7005748c7
4 changed files with 4 additions and 4 deletions

View File

@@ -1573,7 +1573,7 @@ def makeBook(source, qtgui=None):
if os.path.isfile(source):
os.remove(source)
elif os.path.isdir(source):
rmtree(source)
rmtree(source, True)
end = perf_counter()
print(f"makeBook: {end - start} seconds")