"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
drive: convert / in names to a unicode equivalent (/) - fixes #62
Nick Craig-Woodb44d0ea088dc
diff --git a/drive/drive.go b/drive/drive.goindex 3a8aa0f1d..5a02423d5 100644--- a/drive/drive.go+++ b/drive/drive.go@@ -231,6 +231,8 @@ func (f *Fs) list(dirID string, title string, directoriesOnly bool, filesOnly bo// Escaping the backslash isn't documented but seems to worktitle = strings.Replace(title, `\`, `\\`, -1)title = strings.Replace(title, `'`, `\'`, -1)+ // Convert / to / for search+ title = strings.Replace(title, "/", "/", -1)query = append(query, fmt.Sprintf("title='%s'", title))}if directoriesOnly {@@ -273,6 +275,8 @@ OUTER:return false, errors.Wrap(err, "couldn't list directory")}for _, item := range files.Items {+ // Convert / to / for listing purposes+ item.Title = strings.Replace(item.Title, "/", "/", -1)if fn(item) {found = truebreak OUTER