[plt-scheme] normalize-path

From: Eli Barzilay (eli at barzilay.org)
Date: Sat Feb 5 13:13:12 EST 2005

On Feb  5, Dave Herman wrote:
> What's the difference in v299 between
>      (normalize-path p wrt)
> and, say,
>      (resolve-path
>       (expand-path
>        (simplify-path
>         (path->complete-path p wrt))))
> or something like that?

`normalize-path' is still defined in Scheme (collects/mzlib/file.ss),
just look at the definition and you'll get a sense of the
difference...  The thing with paths is that you can sort of assume
that some combination works like `normalize-path', but to making it
work everywhere is surprisingly difficult.  (Consider case issues on
Windows, symlinks on unix, possible link cycles, the separate drive &
path on Windows...)

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.