Skip to main content

classify_target_leaf_shape

Function classify_target_leaf_shape 

Source
pub fn classify_target_leaf_shape(
    exists: bool,
    is_symlink: bool,
    is_dir: bool,
    is_empty: bool,
) -> TargetLeafShape
Expand description

Pure: classify metadata facts into a leaf shape (emptiness supplied when dir).

is_empty is only consulted when the leaf is a real directory; callers may pass false when they have not inspected children for non-dirs.