Mail Archives: djgpp/1998/02/26/06:12:33
On Thu, 26 Feb 1998, Vik Heyndrickx wrote:
> What canonicalizing actually means is that it yields a unique filename
> for some file. That is its primary functioning; not converting slashes,
> stripping dots, simplifying double-dots, making absolute, adding drive
> letters, un-SUBST-ing, un-ASSIGN-ing, capitalizing, adding "x:/DEV/" for
> devices and other weird things.
In addition to what I already wrote, I would be interested to know how to
yield a unique file name spec without doing all these ``weird'' things
(some of which `_fixpath' doesn't do, btw). A unique name presumably
means that you can find out whether any given two files are the same by
doing a simple string comparison. So how would you go about
canonicalizing a file name if not by converting it to the shortest
absolute path from the root?
- Raw text -