[Mono-dev] DirectoryInfo cache
Jerome Haltom
wasabi at larvalstage.net
Fri Dec 21 13:32:11 EST 2007
DirectoryInfo i = new DirectoryInfo("/tmp/foo");
i.Create();
Directory.Delete(i);
i.Exists(); <--- this returns true
DirectoryInfo and FileSystemInfo have some sort of cache on them. I'm
hard pressed to understand what the goal of this cache is. The file
system should do Just Fine.
Beyond that, DirectoryInfo.Delete() and MoveTo don't actually invalidate
the cache.
Opinions?
More information about the Mono-devel-list
mailing list