X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=fileutils.go;h=34e6e748956922fb8d7a79ac234828514d3da960;hb=63422ceeb9e24f452c8f497995b3319ab50996f8;hp=b37b99ce4c79aa01c2e56534c9a2887767e0e6a8;hpb=60834a0713d5dcc6a9911511cb8618ce7358c824;p=gocheese.git diff --git a/fileutils.go b/fileutils.go index b37b99c..34e6e74 100644 --- a/fileutils.go +++ b/fileutils.go @@ -1,6 +1,6 @@ /* GoCheese -- Python private package repository and caching proxy -Copyright (C) 2019-2021 Sergey Matveev +Copyright (C) 2019-2022 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -79,7 +79,7 @@ func WriteFileSync(dirPath, filePath string, data []byte, mtime time.Time) error } func mkdirForPkg(w http.ResponseWriter, r *http.Request, pkgName string) bool { - path := filepath.Join(*Root, pkgName) + path := filepath.Join(Root, pkgName) if _, err := os.Stat(path); os.IsNotExist(err) { if err = os.Mkdir(path, os.FileMode(0777)); err != nil { log.Println("error", r.RemoteAddr, "mkdir", pkgName, err)