"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: make --drive-auth-owner-only look in all directories
Nick Craig-Wood25bbc5d22b4e
diff --git a/backend/drive/drive.go b/backend/drive/drive.goindex e3f9c571e..b393ffccb 100644--- a/backend/drive/drive.go+++ b/backend/drive/drive.go@@ -712,14 +712,14 @@ func (f *Fs) List(dir string) (entries fs.DirEntries, err error) {_, err = f.list(directoryID, "", false, false, false, func(item *drive.File) bool {remote := path.Join(dir, item.Name)switch {- case *driveAuthOwnerOnly && !isAuthOwned(item):- // ignore object or directorycase item.MimeType == driveFolderType:// cache the directory ID for later lookupsf.dirCache.Put(remote, item.Id)when, _ := time.Parse(timeFormatIn, item.ModifiedTime)d := fs.NewDir(remote, when).SetID(item.Id)entries = append(entries, d)+ case *driveAuthOwnerOnly && !isAuthOwned(item):+ // ignore objectcase item.Md5Checksum != "" || item.Size > 0:// If item has MD5 sum or a length it is a file stored on driveo, err := f.newObjectWithInfo(remote, item)