fixed error with double slash in vmbackupmanager (#557)

Signed-off-by: Alexander Marshalov <_@marshalov.org>
This commit is contained in:
Alexander Marshalov 2023-05-11 16:37:41 +02:00 committed by Aliaksandr Valialkin
parent 5d22c36904
commit 9855b38da2
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -198,7 +198,7 @@ func NewRemoteFS(path string) (common.RemoteFS, error) {
return nil, fmt.Errorf("dir must be absolute; got %q", dir)
}
fs := &fsremote.FS{
Dir: dir,
Dir: filepath.Clean(dir),
}
return fs, nil
case "gcs", "gs":