fix(local): Preserve file owner when copying (#7528)
This commit is contained in:
parent
398c04386a
commit
25c5e075a9
@ -280,7 +280,7 @@ func (d *Local) Copy(_ context.Context, srcObj, dstDir model.Obj) error {
|
|||||||
return cp.Copy(srcPath, dstPath, cp.Options{
|
return cp.Copy(srcPath, dstPath, cp.Options{
|
||||||
Sync: true, // Sync file to disk after copy, may have performance penalty in filesystem such as ZFS
|
Sync: true, // Sync file to disk after copy, may have performance penalty in filesystem such as ZFS
|
||||||
PreserveTimes: true,
|
PreserveTimes: true,
|
||||||
NumOfWorkers: 0, // Serialized copy without using goroutine
|
PreserveOwner: true,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user