Skip to main content

Module canonical

Module canonical 

Source
Expand description

canonicalize without Windows’ \\?\ prefix.

On Windows std::fs::canonicalize answers \\?\C:\data\a.csv: a verbatim path, which nothing else in datui spells that way. Recorded as a recent it read \\?\C:\… rather than ~\…, and it matched no row a listing built from C:\data. The prefix is dropped wherever the plain spelling names the same file, which is what the dunce crate does. Everything that canonicalizes a path goes through here, tests included, so what is stored and what it is compared with are spelled alike.

Functions§

canonicalize
Path::canonicalize, in the spelling a Windows user would type.