File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1777,9 +1777,8 @@ Executed at: {executed_at}"#,
1777
1777
}
1778
1778
}
1779
1779
if let Ok ( ( ) ) = fs:: hard_link ( & src, dst) {
1780
- // Attempt to "easy copy" by creating a hard link
1781
- // (symlinks don't work on windows), but if that fails
1782
- // just fall back to a slow `copy` operation.
1780
+ // Attempt to "easy copy" by creating a hard link (symlinks are priviledged on windows),
1781
+ // but if that fails just fall back to a slow `copy` operation.
1783
1782
} else {
1784
1783
if let Err ( e) = fs:: copy ( & src, dst) {
1785
1784
panic ! ( "failed to copy `{}` to `{}`: {}" , src. display( ) , dst. display( ) , e)
@@ -1790,7 +1789,7 @@ Executed at: {executed_at}"#,
1790
1789
. set_accessed ( t ! ( metadata. accessed( ) ) )
1791
1790
. set_modified ( t ! ( metadata. modified( ) ) ) ;
1792
1791
1793
- let dst_file = t ! ( fs :: File :: open( dst) ) ;
1792
+ let dst_file = t ! ( File :: options ( ) . write ( true ) . open( dst) ) ;
1794
1793
t ! ( dst_file. set_times( file_times) ) ;
1795
1794
}
1796
1795
}
You can’t perform that action at this time.
0 commit comments