storage/get+discover: only add items not exceeding max-resource-size

This commit is contained in:
Peter Bieringer
2026-03-26 07:56:38 +01:00
parent e55ccefeb3
commit 24c0832762
2 changed files with 6 additions and 3 deletions

View File

@@ -77,7 +77,8 @@ class StoragePartDiscover(StorageBase):
if href:
item = collection._get(href)
if item is not None:
yield item
if pathutils.file_check_size(filesystem_path, self._max_resource_size):
yield item
return
yield collection