mirror of https://github.com/Xhofe/alist
fix(local): Preserve file owner when copying (#7528)
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…
Reference in New Issue