dump: Allow absolute paths

This commit is contained in:
Alexander Neumann 2017-10-16 20:22:01 +02:00
parent 980bb9059f
commit beaf55f1fc
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func init() {
func splitPath(path string) []string {
d, f := filepath.Split(path)
if d == "" {
if d == "" || d == "/" {
return []string{f}
}
s := splitPath(filepath.Clean(d))