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

WalkRDirTree: return error if unknown item type

Iakov Davydova3a436ce16ae
diff --git a/fs/walk.go b/fs/walk.go
index 3b9610a50..336597385 100644
--- a/fs/walk.go
+++ b/fs/walk.go
@@ -385,6 +385,8 @@ func walkRDirTree(f Fs, path string, includeAll bool, maxLevel int, listR ListRF
} else {
Debugf(x, "Excluded from sync (and deletion)")
}
+ default:
+ return errors.Errorf("unknown object type %T", entry)
}
}
return nil