Skip to content

Commit

Permalink
Use copy2 to preserve file attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jyapayne committed Aug 19, 2016
1 parent a477d52 commit 58ba7b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def copy(src, dest, **kwargs):
src = '\\\\?\\'+src.replace('/', '\\')
if os.path.isabs(dest):
dest = '\\\\?\\'+dest.replace('/', '\\')
shutil.copy(src, dest, **kwargs)
shutil.copy2(src, dest, **kwargs)

def move(src, dest, **kwargs):
if is_windows():
Expand Down

0 comments on commit 58ba7b4

Please sign in to comment.