mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 23:39:48 +01:00
fixed error with double slash in vmbackupmanager (#557)
Signed-off-by: Alexander Marshalov <_@marshalov.org>
This commit is contained in:
parent
b4d919fbc7
commit
f796c5dd9e
@ -198,7 +198,7 @@ func NewRemoteFS(path string) (common.RemoteFS, error) {
|
|||||||
return nil, fmt.Errorf("dir must be absolute; got %q", dir)
|
return nil, fmt.Errorf("dir must be absolute; got %q", dir)
|
||||||
}
|
}
|
||||||
fs := &fsremote.FS{
|
fs := &fsremote.FS{
|
||||||
Dir: dir,
|
Dir: filepath.Clean(dir),
|
||||||
}
|
}
|
||||||
return fs, nil
|
return fs, nil
|
||||||
case "gcs", "gs":
|
case "gcs", "gs":
|
||||||
|
Loading…
Reference in New Issue
Block a user