mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 09:04:52 +01:00
union: fix deleting dirs when all remotes can't have empty dirs
This commit is contained in:
parent
b2f6aac754
commit
aa2746d0de
@ -127,6 +127,11 @@ func (f *Fs) Features() *fs.Features {
|
||||
func (f *Fs) Rmdir(ctx context.Context, dir string) error {
|
||||
upstreams, err := f.action(ctx, dir)
|
||||
if err != nil {
|
||||
// If none of the backends can have empty directories then
|
||||
// don't complain about directories not being found
|
||||
if !f.features.CanHaveEmptyDirectories && err == fs.ErrorObjectNotFound {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
errs := Errors(make([]error, len(upstreams)))
|
||||
|
Loading…
Reference in New Issue
Block a user