Fix FS remove bucket regression bug (#2693)

This commit is contained in:
Anis Elleuch authored and Harshavardhana committed 2016-09-14 16:41:39 -07:00
1 parent 19e01ceb19
commit a84548d7ea
3 files changed
+9 -9

No files matched your search

+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.