mirror of
https://github.com/restic/restic.git
synced 2025-12-10 05:51:51 +00:00
dump: Allow absolute paths
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user