scan_manifest

Function scan_manifest 

Source
pub fn scan_manifest(
    path: impl AsRef<Path>,
    options: &ManifestOptions,
) -> Result<PayloadManifest>
Expand description

Scans a file or directory into a deterministic manifest.

On Unix, torrent components are the exact OsStr bytes. On Windows and other platforms without byte-oriented names, components are UTF-8 encoding of their Unicode representation. Entries are sorted lexicographically by unsigned bytes per component.

ยงErrors

Returns contextual I/O, unsupported-policy, unsafe-component, collision, mutation, or checked-size errors.