]> Cypherpunks.ru repositories - gocheese.git/blobdiff - fileutils.go
Additional signature with my new main key
[gocheese.git] / fileutils.go
index b37b99ce4c79aa01c2e56534c9a2887767e0e6a8..34e6e748956922fb8d7a79ac234828514d3da960 100644 (file)
@@ -1,6 +1,6 @@
 /*
 GoCheese -- Python private package repository and caching proxy
-Copyright (C) 2019-2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2019-2022 Sergey Matveev <stargrave@stargrave.org>
 
 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)