
On Nov 9, 2007, at 15:01 , Andrew Coppin wrote:
4. Not actually related to exceptions, but doesDirectoryExist "C:\" yields False. (Even though getDirectoryContents "C:\" yields the correct result.) So I can't even use that to filter out invalid directory names.
This is an ancient and extremely annoying general DOS/Windows wart. The root directory has several unexpected behaviors, because it is *not* in fact a directory (or wasn't on FAT, and the behaviors have to be kept for backward compatibility). (You're also not the only one to be frustrated by having to parse stringified I/O exceptions to decipher them.) -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH