crates icon indicating copy to clipboard operation
crates copied to clipboard

canonical-path: definition of ‘canonical’

Open sanmai-NL opened this issue 6 years ago • 1 comments

Thanks for this crate!

What is your definition of canonical, per platform? Could this be written in the docs and API docs?

sanmai-NL avatar Oct 04 '18 15:10 sanmai-NL

Hello, sorry for such a belated reply!

Indeed this is worth documenting, however the concrete definition is a tad tricky as canonicalization mechanisms tend to be rather complicated.

A brief definition: a canonical path contains no relative path components (i.e. ./..) or symbolic links.

tarcieri avatar Nov 09 '18 17:11 tarcieri