[Mono-list] DirectoryInfo.GetFiles() bug?
robertj at gmx.net
Wed Jan 23 15:50:24 EST 2008
Chris Howie wrote:
> On Jan 23, 2008 1:45 PM, Jonathan Pryor <jonpryor at vt.edu> wrote:
>> On Wed, 2008-01-23 at 18:17 +0000, Alan McGovern wrote:
>>> Are you sure that's a bug? '*.*' will look for every file which
>>> contains a '.' character in it. If you want all files, you should just
>>> use ' * ', or leave out the mask altogether.
>> On Windows, '*.*' means *all* files, even those without a '.':
>> So how close do we want to get to Win32 semantics? :-)
> Maybe it could be tied in some way to MONO_IOMAP or
> MONO_STRICT_IO_EMULATION so that people using broken OSes can switch
> on the behavior they need, and the rest of us get the right behavior
> by default. :)
There is no need to raise the broken OS flag as the behavior
of Directory.GetFiles ("*.*") is clearly documented in MSDN.
Feel free to use Mono.Unix/Posix instead ;-)
More information about the Mono-list