use filepath.Join instead of path.Join

This commit is contained in:
David Christofas
2020-03-11 16:00:51 +01:00
parent f5f68e27dc
commit 78a92cf722
+2 -2
View File
@@ -2,7 +2,7 @@ package flagset
import (
"os"
"path"
"path/filepath"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis-thumbnails/pkg/config"
@@ -139,7 +139,7 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.StringFlag{
Name: "filesystemstorage-root",
Value: path.Join(os.TempDir(), "ocis-thumbnails/"),
Value: filepath.Join(os.TempDir(), "ocis-thumbnails/"),
Usage: "Root path of the filesystem storage directory",
EnvVars: []string{"THUMBNAILS_FILESYSTEMSTORAGE_ROOT"},
Destination: &cfg.FileSystemStorage.RootDirectory,