[Mono-list] Possible bug checking existence of file or directory
piotr.wysocki at secpl.cs.put.poznan.pl
Fri Nov 5 05:10:49 EDT 2010
On 11/05/2010 03:15 AM, Abe Gillespie wrote:
> If this is a bug I'll file it:
> Doing File.Exists() or Directory.Exists() on a file / dir that the
> running account doesn't have permission to causes this to return
> false. This is somewhat understandable (but is it correct?).
> However, doing a new FileSystemWatcher() on the same existing, but not
> accessible dir, throws a DirectoryNotFoundException(). This seems a
> little less understandable. But I'm not sure.
You forgot to specify your expected results.
If you ask me about the above examples, I would expect the actual results.
Mobile Systems Research Labs, Poznan University of Technology
More information about the Mono-list