"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: improve directory notifications in ChangeNotify
Fabian Möller05fa9cb3795e
diff --git a/backend/drive/drive.go b/backend/drive/drive.goindex 44e23700c..e06241820 100644--- a/backend/drive/drive.go+++ b/backend/drive/drive.go@@ -2061,15 +2061,16 @@ func (f *Fs) changeNotifyRunner(notifyFunc func(string, fs.EntryType), startPage}var pathsToClear []entryTypefor _, change := range changeList.Changes {+ // find the previous pathif path, ok := f.dirCache.GetInv(change.FileId); ok {if change.File != nil && change.File.MimeType != driveFolderType {pathsToClear = append(pathsToClear, entryType{path: path, entryType: fs.EntryObject})} else {pathsToClear = append(pathsToClear, entryType{path: path, entryType: fs.EntryDirectory})}- continue}+ // find the new pathif change.File != nil {changeType := fs.EntryDirectoryif change.File.MimeType != driveFolderType {