Search:
Namespaces
Discussions
.NET v1.1
Feedback
Directory.Exists(path) creates a directory
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.framework
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...
Strig (VIP)
I"m using this method to determine if a folder\directory exists:
Directory
.Exists(path)
and as I call it, it creates (by itself - even though the folder doesn't
exists) a new folder according to tha path I passed it and returns 'true'!
How could that be?
Reply to this message...
Shiva
Coulnd't reproduce the behaviour. Can you post the relevant code?
"Strig" <
Click here to reveal e-mail address
> wrote in message
news:
Click here to reveal e-mail address
...
I"m using this method to determine if a folder\directory exists:
Directory
.Exists(path)
and as I call it, it creates (by itself - even though the folder doesn't
exists) a new folder according to tha path I passed it and returns 'true'!
How could that be?
Reply to this message...
Strig (VIP)
<%@ Import Namespace="System.IO" %>
dim mVirtualPath as string = "c:\txt"
If not
Directory
.Exists(mVirtualPath)
'doing nothing yet
Else
'jumps right here after the folder has been created
End If
"Shiva" wrote:
[Original message clipped]
Reply to this message...
Strig (VIP)
solved, don't know how or why
"Strig" wrote:
[Original message clipped]
Reply to this message...
Russ Bishop
you are crazy, it does no such thing on my system.
"Strig" <
Click here to reveal e-mail address
> wrote in message
news:
Click here to reveal e-mail address
...
[Original message clipped]
Reply to this message...
System.IO.Directory
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com