Expand description
Shortens UNIX-like paths.
Features
-
cli
(default)Builds a binary executable. Disable this feature if you intend to use this crate as a library.
Functions
- Takes a reference to a
Path
and shortens all but its last component to their first characters. Dots (.
) are left as is since they might refer to hidden or relative paths.