/joat-path-rs

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

Primary LanguageRustOtherNOASSERTION

joat-path-rs

CI Publish crates.io Docs

Absolute paths

Use package

Get it from crates.io:

cargo add joat-path

About

This is a fork of path-clean. The main distinguishing feature is that this package provides the following three APIs:

  • clean: clean paths according to rules of host operating system (i.e. Unix on Unix, Windows on Windows)
  • clean_unix: clean paths according to Unix rules
  • clean_windows: clean paths according to Windows rules

This enables manipulation of Unix paths on Windows and Windows paths on Unix which has real-world applications. TBD: Document the real-world applications here.