From a6d75776e9852fe2db1b5a79a539fdccd99f2fba Mon Sep 17 00:00:00 2001 From: quantumsheep Date: Thu, 24 Feb 2022 10:20:58 +0100 Subject: [PATCH] Use `path/filepath` instead of `path` --- cmd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 1cf45c8..05ff0f5 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -4,7 +4,7 @@ import ( "fmt" "log" "os" - "path" + "path/filepath" "github.com/mitchellh/go-homedir" "github.com/quantumsheep/sshs/ui" @@ -82,7 +82,7 @@ func run(cmd *cobra.Command, args []string) { func createFileRecursive(filename string) error { if _, e := os.Stat(filename); os.IsNotExist(e) { - if e := os.MkdirAll(path.Dir(filename), os.ModePerm); e != nil { + if e := os.MkdirAll(filepath.Dir(filename), os.ModePerm); e != nil { return e }