path-clean icon indicating copy to clipboard operation
path-clean copied to clipboard

A Rust implementation of `cleanname` or `path.Clean`

Results 3 path-clean issues
Sort by recently updated
recently updated
newest added

Very little of the clean function is actually generic and hence multiple instantiations of the main bulk of the code can be avoided by splitting out the `.as_ref()` from the...

When cleaning relative paths that cross Windows drives, the library was producing malformed absolute paths with missing backslashes after drive letters. ## Problem Given this input path: ``` D:\a\pnp-rs\pnp-rs\fixtures\global-cache\../../../../../../C:/Users/runneradmin/AppData/Local/Yarn/Berry/cache/source-map-npm-0.6.1-1a3621db16-10c0.zip/node_modules/source-map/ ```...

Input: ``` D:\a\pnp-rs\pnp-rs\fixtures\global-cache\../../../../../../C:/Users/runneradmin/AppData/Local/Yarn/Berry/cache/source-map-npm-0.6.1-1a3621db16-10c0.zip/node_modules/source-map/ ``` Expected: ``` C:\Users\runneradmin\AppData\Local\Yarn\Berry\cache\source-map-npm-0.6.1-1a3621db16-10c0.zip\node_modules\source-map\ ``` Actually: ``` C:Users\runneradmin\AppData\Local\Yarn\Berry\cache\source-map-npm-0.6.1-1a3621db16-10c0.zip\node_modules\source-map\ ``` The `\` is mssing after `C:`