"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
sync: fix cpu spinning when empty directory finding with leading slashes
Nick Craig-Woodc8376646536a
diff --git a/fs/sync/sync.go b/fs/sync/sync.goindex e0a3e23ac..7feedfcd7 100644--- a/fs/sync/sync.go+++ b/fs/sync/sync.go@@ -726,7 +726,7 @@ func (s *syncCopyMove) markParentNotEmpty(entry fs.DirEntry) {parentDir = ""}delete(s.srcEmptyDirs, parentDir)- if parentDir == "" {+ if parentDir == "" || parentDir == "/" {break}parentDir = path.Dir(parentDir)