fix(local): Preserve file owner when copying (#7528)

pull/7551/head
Rirmach 2024-11-21 22:38:41 +08:00 committed by GitHub
parent 398c04386a
commit 25c5e075a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ func (d *Local) Copy(_ context.Context, srcObj, dstDir model.Obj) error {
return cp.Copy(srcPath, dstPath, cp.Options{
Sync: true, // Sync file to disk after copy, may have performance penalty in filesystem such as ZFS
PreserveTimes: true,
NumOfWorkers: 0, // Serialized copy without using goroutine
PreserveOwner: true,
})
}