Skip to content

Commit a200708

Browse files
author
atollk
committed
Fixed minor bug related to new preserve_time parameter in fs.copy.
In a certain special case, the parameter was not passed on correctly but always `False` instead.
1 parent 8a1bf57 commit a200708

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/copy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def copy_file_internal(
258258
if src_fs is dst_fs:
259259
# Same filesystem, so we can do a potentially optimized
260260
# copy
261-
src_fs.copy(src_path, dst_path, overwrite=True)
261+
src_fs.copy(src_path, dst_path, overwrite=True, preserve_time=preserve_time)
262262
return
263263

264264
def _copy_locked():

0 commit comments

Comments
 (0)