is_collapsed

Function is_collapsed 

Source
pub fn is_collapsed(path: impl AsRef<Utf8Path>) -> bool
Expand description

Returns true if the path is already collapsed.

A path is considered collapsed if it contains no . components and no .. components that immediately follow a normal component. Leading .. components in relative paths are allowed. Absolute paths should not contain .. at all after the root/prefix.