mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 18:34:41 +01:00
azureblob: fix erroneous Rmdir error "directory not empty"
Before this change Rmdir would check the root rather than the directory specified for being empty and return "directory not empty" when it shouldn't have done.
This commit is contained in:
parent
3975d82b3b
commit
f7ce2e8d95
@ -723,7 +723,7 @@ func (f *Fs) Mkdir(dir string) error {
|
|||||||
// isEmpty checks to see if a given directory is empty and returns an error if not
|
// isEmpty checks to see if a given directory is empty and returns an error if not
|
||||||
func (f *Fs) isEmpty(dir string) (err error) {
|
func (f *Fs) isEmpty(dir string) (err error) {
|
||||||
empty := true
|
empty := true
|
||||||
err = f.list("", true, 1, func(remote string, object *azblob.BlobItem, isDirectory bool) error {
|
err = f.list(dir, true, 1, func(remote string, object *azblob.BlobItem, isDirectory bool) error {
|
||||||
empty = false
|
empty = false
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user