mirror of
https://github.com/restic/restic.git
synced 2026-11-23 05:42:39 +00:00
Store maps in new subdir "maps"
This commit is contained in:
1 parent
b1923063fe
commit
33ce4e33aa
9 files changed
+57
-12
No files matched your search
@@ -17,6 +17,7 @@ const (
|
||||
dataPath = "data"
|
||||
snapshotPath = "snapshots"
|
||||
treePath = "trees"
|
||||
mapPath = "maps"
|
||||
lockPath = "locks"
|
||||
keyPath = "keys"
|
||||
tempPath = "tmp"
|
||||
@@ -86,6 +87,7 @@ func CreateLocal(dir string) (*Local, error) {
|
||||
filepath.Join(dir, dataPath),
|
||||
filepath.Join(dir, snapshotPath),
|
||||
filepath.Join(dir, treePath),
|
||||
filepath.Join(dir, mapPath),
|
||||
filepath.Join(dir, lockPath),
|
||||
filepath.Join(dir, keyPath),
|
||||
filepath.Join(dir, tempPath),
|
||||
@@ -158,6 +160,8 @@ func (b *Local) dir(t Type) string {
|
||||
n = snapshotPath
|
||||
case Tree:
|
||||
n = treePath
|
||||
case Map:
|
||||
n = mapPath
|
||||
case Lock:
|
||||
n = lockPath
|
||||
case Key:
|
||||
|
||||
Reference in new issue
Block a user