20 Feb
2006
20 Feb
'06
2:08 a.m.
Quoth Barbier de Reuille Pierre <pierre.barbier@cirad.fr>: | On Fri, 17 Feb 2006 17:26:08 +0000 | Jon Fairbairn <jon.fairbairn@cl.cam.ac.uk> wrote: | | > On 2006-02-17 at 09:22PST Jared Updike wrote: | > > Yep. change one line to: | > > | > > entry <- if isdir && name /= "." && name /= ".." | > > | > > and it does in fact work. | > | > Only if no-one has been tricky with symbolic links. | > | | And how can you, in Haskell, detect symbolic links ? I refer you to the documentation in System.Posix.Files, especially getFileStatus :: FilePath -> IO FileStatus, and isSymbolicLink :: FileStatus -> Bool. I don't think I've used this function, but it looks promising. Donn Cave, donn@drizzle.com
7452
Age (days ago)
7452
Last active (days ago)
0 comments
1 participants
participants (1)
-
Donn Cave