mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 09:36:13 -08:00
removed dependency to the backend
This commit is contained in:
13
server.go
13
server.go
@@ -6,8 +6,6 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/restic/restic/backend"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -23,12 +21,13 @@ func main() {
|
||||
|
||||
// Create all the necessary subdirectories
|
||||
dirs := []string{
|
||||
backend.Paths.Data,
|
||||
backend.Paths.Snapshots,
|
||||
backend.Paths.Index,
|
||||
backend.Paths.Locks,
|
||||
backend.Paths.Keys,
|
||||
"data",
|
||||
"snapshots",
|
||||
"index",
|
||||
"locks",
|
||||
"keys",
|
||||
}
|
||||
|
||||
for _, d := range dirs {
|
||||
os.MkdirAll(filepath.Join(*path, d), backend.Modes.Dir)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user