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 b4d919fbc7
commit f796c5dd9e
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":