dump: Allow absolute paths
This commit is contained in:
parent
980bb9059f
commit
beaf55f1fc
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ func init() {
|
||||||
|
|
||||||
func splitPath(path string) []string {
|
func splitPath(path string) []string {
|
||||||
d, f := filepath.Split(path)
|
d, f := filepath.Split(path)
|
||||||
if d == "" {
|
if d == "" || d == "/" {
|
||||||
return []string{f}
|
return []string{f}
|
||||||
}
|
}
|
||||||
s := splitPath(filepath.Clean(d))
|
s := splitPath(filepath.Clean(d))
|
||||||
|
|
Loading…
Reference in a new issue