Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

drive: Fix path parsing

Nick Craig-Woodbc221fb27eaa
diff --git a/drive/drive.go b/drive/drive.go
index 965289768..57ae0cb85 100644
--- a/drive/drive.go
+++ b/drive/drive.go
@@ -211,7 +211,7 @@ func (f *FsDrive) String() string {
// parseParse parses a drive 'url'
func parseDrivePath(path string) (root string, err error) {
- root = strings.Trim(root, "/")
+ root = strings.Trim(path, "/")
return
}