Problem with System.IO Functions

  • Thread starter Thread starter Douglas Kentner
  • Start date Start date
D

Douglas Kentner

All,

I have been having problems with how the system.io.directory functions work.
for example if i have a folder called c:\tools\ that contains no subfolders
and I run the following code to check if a subfolder exists, the result is
true even though the folder doesn't exist.

if system.io.directory.exists("c:\tools\Folder") then
something.....
end if
from the various behaviors that i've observed, it appears that there is a
problem drilling down below one folder into subfolders.
if anyone has encountered this behavior and found a workaround or if there
is a fix available from Microsoft it would be much appreciated. Thanks!

-Doug
 
Hi douglas,
I'm not able to repro the scenario that you have described in the
current version of the runtime. Can you let me know what version you are
using currently? I have used the attached simple repro to verify the
behavior that you described and the Directory.Exists API returns false
because i don't have clrtest01 directory. Please send me your code and CLR
version informartion.

Thanks,
_GVB
 
Back
Top