[Haskell-cafe] Re: ANN: System.FilePath 0.9
bortzmeyer at nic.fr
Tue Jul 18 05:11:10 EDT 2006
On Mon, Jul 17, 2006 at 03:07:51AM +0100,
Neil Mitchell <ndmitchell at gmail.com> wrote
a message of 64 lines which said:
> How about adding something like "restrictFilePaths :: FilePath -> IO
> ()" which will restrict the area that can be played with to that
> beneath the given FilePath?
If someone does so, be aware that it is *not* trivial to write it
For instance, many lazy (not in the Haskell meaning) programmers
believe that the path is safe if it does not include .. but it is
false (hint: ."."/foo/bar is a legal path on Unix).
More information about the Haskell-Cafe