mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 14:56:29 +00:00
Use correct method for joining paths
This commit is contained in:
parent
641dc65e6e
commit
ed651df19b
@ -128,7 +128,7 @@ func runCache(opts CacheOptions, gopts GlobalOptions, args []string) error {
|
||||
|
||||
var size string
|
||||
if !opts.NoSize {
|
||||
bytes, err := dirSize(fmt.Sprintf("%s/%s", cachedir, entry.Name()))
|
||||
bytes, err := dirSize(filepath.Join(cachedir, entry.Name()))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user