RFD: deprecate permissions-related stuff in System.Directory

Neil Mitchell ndmitchell at gmail.com
Thu Aug 30 12:01:34 EDT 2007


> returns True for execute permission on Windows, and the one in GHC 6.8.1
> returns True if the filename ends in something like ".exe" or ".bat" (both
> are wrong, just wrong in different ways).

The GHC one is pretty wrong, since ".com" is also a valid extension
for executables. Windows increased the number of executable things in
2000 (I think), and its controlled by the environment variable
%PATHEXT%. On my machine:


i.e. vbs, wsh etc. all are exectuable.



More information about the Libraries mailing list