Skip to main content

read_listing

Function read_listing 

Source
fn read_listing(
    reader: impl Read,
    url: &str,
) -> Result<(Listing, u64), SyncError>
Expand description

A folder’s listing read as it comes, a response at a time: each <response> taken out of what came, read on its own (wrapped in the namespaces the answer’s first element declares), then dropped; what is kept per name is its ETag, size and checksums. Its bytes too. Never more than one response and a read’s piece held at once, whatever the size of the folder (review of 17 October 2026, M4). Whole only with the folder’s own response and the answer’s last element closed: a listing that leaves the folder out, or ends early, is no listing (review of 18 October 2026, L-1 and L-6).