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