From 7972b1330be83f6463338d1bd1568b224a2c97c6 Mon Sep 17 00:00:00 2001 From: Chapuis Bertil Date: Sat, 19 Sep 2015 14:28:26 +0200 Subject: [PATCH] removed dependency to the backend --- server.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/server.go b/server.go index 989d9c5..9da5c3e 100644 --- a/server.go +++ b/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) }