Skip to content

Commit 58ba7b4

Browse files
committed
Use copy2 to preserve file attributes
1 parent a477d52 commit 58ba7b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def copy(src, dest, **kwargs):
123123
src = '\\\\?\\'+src.replace('/', '\\')
124124
if os.path.isabs(dest):
125125
dest = '\\\\?\\'+dest.replace('/', '\\')
126-
shutil.copy(src, dest, **kwargs)
126+
shutil.copy2(src, dest, **kwargs)
127127

128128
def move(src, dest, **kwargs):
129129
if is_windows():

0 commit comments

Comments
 (0)