Use correct method for joining paths

This commit is contained in:
Johannes Hertenstein 2018-10-08 15:47:08 +02:00
parent 641dc65e6e
commit ed651df19b
1 changed files with 1 additions and 1 deletions

View File

@ -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
}