mirror of
https://github.com/rclone/rclone.git
synced 2025-01-11 08:49:37 +01:00
cache: add extra logging in Move and Copy
This commit is contained in:
parent
cbe5d7ce64
commit
2497ca5134
2
cache/cache.go
vendored
2
cache/cache.go
vendored
@ -731,6 +731,7 @@ func (f *Fs) PutUnchecked(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOpt
|
||||
func (f *Fs) Copy(src fs.Object, remote string) (fs.Object, error) {
|
||||
do := f.Fs.Features().Copy
|
||||
if do == nil {
|
||||
fs.Errorf(src, "source remote (%v) doesn't support Copy", src.Fs())
|
||||
return nil, fs.ErrorCantCopy
|
||||
}
|
||||
|
||||
@ -770,6 +771,7 @@ func (f *Fs) Copy(src fs.Object, remote string) (fs.Object, error) {
|
||||
func (f *Fs) Move(src fs.Object, remote string) (fs.Object, error) {
|
||||
do := f.Fs.Features().Move
|
||||
if do == nil {
|
||||
fs.Errorf(src, "source remote (%v) doesn't support Move", src.Fs())
|
||||
return nil, fs.ErrorCantMove
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user