1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-09 00:00:02 +01:00

handle config properly

This commit is contained in:
Chapuis Bertil 2015-09-16 20:48:22 +02:00
parent 7d422481a8
commit 5db483883d

View file

@ -23,10 +23,11 @@ func restPath(url *url.URL, t backend.Type, name string) string {
if !strings.HasSuffix(ept, "/") {
ept += "/"
}
if t == backend.Config {
return ept + backend.Paths.Config
}
var dir string
switch t {
case backend.Config:
dir = backend.Paths.Config
case backend.Data:
dir = backend.Paths.Data
case backend.Snapshot: