[Mono-list] FileInfo.Exists() returns false after calling FileInfo.Create()

David Sheldon dave-monolist@earth.li
Sat, 31 Jan 2004 10:18:28 +0000


On Thu, Jan 29, 2004 at 07:22:07AM -0700, Rathna N wrote:
> Hi, 
> FileInfo.Exists() returns false in the below scenario.
>  
> 1. FileInfo info = new FileInfo (path);
> 2. AssertEquals ("test#01", false, info.Exists); //--> returns "false"
> 3. info.Create();
> 4.  AssertEquals ("Exits - test#02", true, info.Exists); //--> returns
> "false"
> 
>  
> is this the expected behavior ?

It is. If I run your code on MS.NET, then I get the behaviour that
you describe.

David
-- 
    "0 tends to simplify things a bit when you multiply by it..."
                            -- Bill McColl