Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, February 16, 2009 2:22 PM
Hello,
within a small file copy application I am testing with io.directory.exists if a specific directory exists. These directories are based on different machines in the network. Unfortunately it works on four of the seven machines but three are constantly saying 'false' even though the directory exists.
Is there such thing like a network timeout for io.directory.exists? If yes, after what time io.directory.exists brings 'false' and can I change that?
Thanks
All replies (2)
Tuesday, February 17, 2009 5:05 PM âś…Answered
Hi,
The Directory.Exists internally call the Windows API FindFirstFile to get information to determine whether the directory "exists". I don't think there is much we can do to set the time out value for the method.
The reference for FindFirstFile function: http://msdn.microsoft.com/en-us/library/aa364418(VS.85).aspx
Thanks,
JieThis posting is provided "AS IS" with no warranties, and confers no rights.
Monday, February 16, 2009 6:26 PM
.exists does not check to validate a connection. It just returns a false.
Renee