Skip to content

Commit

Permalink
fix(local): Preserve file owner when copying (#7528)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rirmach authored Nov 21, 2024
1 parent 398c043 commit 25c5e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/local/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
}

Expand Down

0 comments on commit 25c5e07

Please sign in to comment.