Preserve attributes when moving across devices (#1482)

This commit is contained in:
Joe Lim authored and GitHub committed 2023-11-06 13:57:11 +11:00
1 parent f52fffbff6
commit dcd2ea8164
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -1320,7 +1320,7 @@ func (nav *nav) copyAsync(app *app, srcs []string, dstDir string) {
nav.copyTotalChan <- total
nums, errs := copyAll(srcs, dstDir)
nums, errs := copyAll(srcs, dstDir, gOpts.preserve)
errCount := 0
loop:
@@ -1415,7 +1415,7 @@ func (nav *nav) moveAsync(app *app, srcs []string, dstDir string) {
nav.copyTotalChan <- total
nums, errs := copyAll([]string{src}, dstDir)
nums, errs := copyAll([]string{src}, dstDir, []string{"mode", "timestamps"})
oldCount := errCount
loop: