fix destination path

This commit is contained in:
Dawid Dziurla 2020-07-06 21:08:43 +02:00
parent 17a9719f3b
commit e3d73706ce
No known key found for this signature in database
GPG key ID: 7B6D8368172E9B0B

View file

@ -23,7 +23,7 @@ func SplitWithPrompt(path string) error {
return err
}
return Split(path, path, total, threshold)
return Split(path, filepath.Dir(path), total, threshold)
}
func Split(path string, destination string, total int, threshold int) error {