[Haskell-cafe] Re: File path programme

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Mon Jan 31 13:39:50 EST 2005


Peter Simons <simons at cryp.to> writes:

>   http://cryp.to/pathspec/PathSpec.hs

> There also is a function which changes a path specification
> into its canonic form, meaning that all redundant segments
> are stripped.

It's incorrect: canon (read "x/y/.." :: RelPath Posix) gives "x",
yet on Unix they aren't equivalent when y is a non-local symlink
or doesn't exist.

Also, "x/." is not equivalent to "x": rmdir can be used with "x"
but not with "x/.".

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak at knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/


More information about the Haskell-Cafe mailing list