Skip to content

Commit c913806

Browse files
committed
bypass lock on move()
1 parent 8e6ae64 commit c913806

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fs/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,8 +1205,9 @@ def move(self, src, dst, overwrite=False, chunk_size=16384):
12051205
return
12061206
except OSError:
12071207
pass
1208-
self.copy(src, dst, overwrite=overwrite, chunk_size=chunk_size)
1209-
self.remove(src)
1208+
self.copy(src, dst, overwrite=overwrite, chunk_size=chunk_size,
1209+
bypass_lock=True)
1210+
self.remove(src, bypass_lock=True)
12101211

12111212
def movedir(self, src, dst, overwrite=False, ignore_errors=False, chunk_size=16384):
12121213
"""moves a directory from one location to another.

0 commit comments

Comments
 (0)