mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
32acefedf2
commit
565b86b853
@ -141,7 +141,7 @@ class WindowsFileCopier:
|
||||
winutil.set_file_handle_delete_on_close(h, True)
|
||||
except OSError as err:
|
||||
# Ignore dir not empty errors. Should never happen but we
|
||||
# ignore it as the UNIX semantics are to no delete folders
|
||||
# ignore it as the UNIX semantics are to not delete folders
|
||||
# during __exit__ anyway and we dont want to leak the handle.
|
||||
if err.winerror != winutil.ERROR_DIR_NOT_EMPTY:
|
||||
raise
|
||||
|
Loading…
x
Reference in New Issue
Block a user