From f7ce2e8d956cab1ca5cdb5b78d1cfa20e3ea3b31 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 14 Nov 2018 17:13:39 +0000 Subject: [PATCH] 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. --- backend/azureblob/azureblob.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/azureblob/azureblob.go b/backend/azureblob/azureblob.go index 816c9101d..55e1517c7 100644 --- a/backend/azureblob/azureblob.go +++ b/backend/azureblob/azureblob.go @@ -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 func (f *Fs) isEmpty(dir string) (err error) { 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 return nil })