From 5c226e91c0ca2ccd247f71758d190bf121b72dd2 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 25 Aug 2015 19:16:25 +0100 Subject: [PATCH] Ignore rmdir in limited fs rather than throwing error - fixes #112 --- fs/limited.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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