mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00:00
Create toplevel repository directory
This commit is contained in:
parent
64efcc2813
commit
d0027c19db
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@ func isHashed(dir string) bool {
|
|||
func createDirectories(path string) {
|
||||
log.Println("Creating repository directories")
|
||||
|
||||
if err := os.MkdirAll(path, 0700); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
dirs := []string{
|
||||
"data",
|
||||
"index",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue