Create toplevel repository directory

This commit is contained in:
Zlatko Čalušić 2016-12-27 16:15:54 +01:00
parent 64efcc2813
commit d0027c19db

View file

@ -20,6 +20,10 @@ func isHashed(dir string) bool {
func createDirectories(path string) { func createDirectories(path string) {
log.Println("Creating repository directories") log.Println("Creating repository directories")
if err := os.MkdirAll(path, 0700); err != nil {
log.Fatal(err)
}
dirs := []string{ dirs := []string{
"data", "data",
"index", "index",