Skip to content

Commit

Permalink
combine: fix operations.DirMove across upstreams
Browse files Browse the repository at this point in the history
  • Loading branch information
nielash committed Mar 6, 2024
1 parent fd8faeb commit 07ab96e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fs/operations/operations.go
Expand Up @@ -2269,7 +2269,10 @@ func DirMove(ctx context.Context, f fs.Fs, srcRemote, dstRemote string) (err err
if err == nil {
accounting.Stats(ctx).Renames(1)
}
return err
if err != fs.ErrorCantDirMove && err != fs.ErrorDirExists {
return err
}
fs.Infof(f, "Can't DirMove - falling back to file moves: %v", err)
}

// Load the directory tree into memory
Expand Down

0 comments on commit 07ab96e

Please sign in to comment.