pub fn classify_target_leaf_shape(
exists: bool,
is_symlink: bool,
is_dir: bool,
is_empty: bool,
) -> TargetLeafShapeExpand 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.