コンテンツへスキップ
ものがたり
戻る

DirectoryInfo.Exists

http://www.nabble.com/DirectoryInfo-cache-td14460291.html

DirectoryInfo i = new DirectoryInfo("/tmp/foo");
i.Create();
Directory.Delete(i);
i.Exists();   <--- this returns true

This is by design, i.e. it matches MS.

まじでー? そいつは知らなんだ。それって使えねーじゃん。

追記: ↑で投稿されてるコードがそもそも間違ってる! コメント欄も読むべし。


この記事を共有:

前の記事
インターネットマガジン バックナンバーアーカイブ
次の記事
2007-12-27