Skip to main content

deduplicate_paths

Function deduplicate_paths 

Source
pub fn deduplicate_paths(
    paths: impl IntoIterator<Item = PathBuf>,
    options: PathIdentityOptions,
) -> Result<Vec<PathBuf>, PathError>
Expand description

Deduplicate paths using identity keys; preserve first occurrence order.

Paths that fail key generation produce an error (fail-fast).

ยงFilesystem access

Same as path_identity_key for each path (only if options request it).