Fix FS remove bucket regression bug (#2693)

This commit is contained in:
Anis Elleuch
2016-09-15 00:41:39 +01:00
committed by Harshavardhana
parent 19e01ceb19
commit a84548d7ea
3 changed files with 9 additions and 9 deletions
+2 -1
View File
@@ -216,7 +216,8 @@ func cleanupDir(storage StorageAPI, volume, dirPath string) error {
delFunc = func(entryPath string) error {
if !strings.HasSuffix(entryPath, slashSeparator) {
// Delete the file entry.
return storage.DeleteFile(volume, entryPath)
err := storage.DeleteFile(volume, entryPath)
return traceError(err)
}
// If it's a directory, list and call delFunc() for each entry.