diff --git a/libs/folders/folders.go b/libs/folders/folders.go index e27e315579..81bf7ed01d 100644 --- a/libs/folders/folders.go +++ b/libs/folders/folders.go @@ -9,7 +9,7 @@ import ( // FindDirWithLeaf returns the first directory that holds `leaf`, // traversing up to the root of the filesystem, starting at `dir`. func FindDirWithLeaf(dir string, leaf string) (string, error) { - p, err := filepath.Abs(p) + dir, err := filepath.Abs(dir) if err != nil { return "", err }