Preserve attributes when moving across devices (#1482)
This commit is contained in:
1 parent
f52fffbff6
commit
dcd2ea8164
2 files changed
+6
-6
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user