|
Posix.getFileStatus: msg#00077lang.haskell.glasgow.bugs
(1) I think Posix.getFileStatus should respond to a file which isn't there with something rather more helpful than "system error". For example, a "No such file or directory" message. (2) The logical way of spotting whether a file is actually there is the queryFile function, documented for example here: http://haskell.cs.yale.edu/ghc/docs/latest/html/hslibs/files-and-directories.html But sadly the queryFile function does not appear to be in the Posix module! At least not for ghc5.04.2. Good thing there's a Directory.doesFileExist function! Of course that's not quite the same, since it only checks if there is a normal file of that name (it returns False for a directory).
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: profiling problems, Simon Marlow |
|---|---|
| Next by Date: | RE: Posix.getFileStatus, Simon Marlow |
| Previous by Thread: | RE: profiling problems, Simon Marlow |
| Next by Thread: | Re: Posix.getFileStatus, Dean Herington |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |