mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
1de7cdedc0
commit
bc85b0948e
@ -352,12 +352,13 @@ class WindowsAtomicFolderMove(object):
|
|||||||
# in which case we use the same handle for both files
|
# in which case we use the same handle for both files
|
||||||
fileid = name_to_fileid[x]
|
fileid = name_to_fileid[x]
|
||||||
found = False
|
found = False
|
||||||
for other in fileid_to_names[fileid]:
|
if fileid is not None:
|
||||||
other = os.path.normcase(os.path.abspath(os.path.join(path, other)))
|
for other in fileid_to_names[fileid]:
|
||||||
if other in self.handle_map:
|
other = os.path.normcase(os.path.abspath(os.path.join(path, other)))
|
||||||
self.handle_map[f] = self.handle_map[other]
|
if other in self.handle_map:
|
||||||
found = True
|
self.handle_map[f] = self.handle_map[other]
|
||||||
break
|
found = True
|
||||||
|
break
|
||||||
if found:
|
if found:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user