Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Ignore rmdir in limited fs rather than throwing error - fixes #112

Nick Craig-Wood5c226e91c0ca
diff --git a/fs/limited.go b/fs/limited.go
index d99a03142..8f80396c3 100644
--- a/fs/limited.go
+++ b/fs/limited.go
@@ -81,7 +81,8 @@ func (f *Limited) Mkdir() error {
// Remove the directory (container, bucket) if empty
func (f *Limited) Rmdir() error {
- return fmt.Errorf("Can't rmdir in limited fs")
+ // Ignore this in a limited fs
+ return nil
}
// Precision of the ModTimes in this Fs