File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 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}"#,
17771777 }
17781778 }
17791779 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.
17831782 } else {
17841783 if let Err ( e) = fs:: copy ( & src, dst) {
17851784 panic ! ( "failed to copy `{}` to `{}`: {}" , src. display( ) , dst. display( ) , e)
@@ -1790,7 +1789,7 @@ Executed at: {executed_at}"#,
17901789 . set_accessed ( t ! ( metadata. accessed( ) ) )
17911790 . set_modified ( t ! ( metadata. modified( ) ) ) ;
17921791
1793- let dst_file = t ! ( fs :: File :: open( dst) ) ;
1792+ let dst_file = t ! ( File :: options ( ) . write ( true ) . open( dst) ) ;
17941793 t ! ( dst_file. set_times( file_times) ) ;
17951794 }
17961795 }
You can’t perform that action at this time.
0 commit comments