pub fn is_collapsed(path: impl AsRef<Utf8Path>) -> boolExpand 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.