Skip to main content

directory_group

Function directory_group 

Source
pub fn directory_group(relative_path: &Path) -> &str
Expand description

Extract the first path component for --group-by directory grouping.

Returns the first directory segment of a relative path. For monorepo structures (packages/auth/...), returns packages.