pub fn clean(&self) -> Result<AbsoluteSystemPathBuf, PathError> {
        let cleaned_path = self
            .0
            .as_std_path()
            .clean()
            .try_into()
            .map_err(|_| PathError::InvalidUnicode(self.0.as_str().to_owned()))?;

        Ok(AbsoluteSystemPathBuf(cleaned_path))
    }
Lexically cleans a path by doing the following:
1. Reduce multiple slashes to a single slash.
2. Eliminate . path name elements (the current directory).
3. Eliminate .. path name elements (the parent directory) and the non-.
non-.., element that precedes them.
4. Eliminate .. elements that begin a rooted path, that is, replace /..
by / at the beginning of a path.
5. Leave intact .. elements that begin a non-rooted path.
crates/turborepo-paths/src/absolute_system_path.rs