xl/fs: pathJoin now takes variadic inputs. (#1550)

Retains slash for the last element.

Fixes #1546
This commit is contained in:
Harshavardhana
2016-05-09 00:46:54 -07:00
parent 04a5b25929
commit 722abe2d0f
4 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ func cleanupDir(storage StorageAPI, volume, dirPath string) error {
}
return nil
}
return delFunc(retainSlash(dirPath))
return delFunc(retainSlash(pathJoin(dirPath)))
}
/// Common object layer functions.