mirror of
https://github.com/restic/rest-server.git
synced 2025-12-06 17:15:45 -08:00
Create toplevel repository directory
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user