Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if a folder exists?
Message
From
14/02/2004 12:56:56
 
 
To
14/02/2004 12:18:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00877389
Message ID:
00877401
Views:
11
Hi Jos,

Yes, you (and Mike) are right, and I am wrong. I seem to remember that there are (or were?) certain situations where DIRECTORY() gives a wrong answer, but I can not remember which. I believe DIRECTORY() did not accept UNC names in VFP6.0 and earlier versions.

Personally I have been so used to and fond of ADIR() that I always use it whenever possible.

>>Mike,
>>
>>I'll explain. If you have a DIRECTORY called xxx, DIRECTORY('xxx') will return .T. which you want. However, If you have a FILE called xxx, DIRECTORY('xxx') will ALSO return .T. which you do NOT want.
>>
>
>I dont see this behaviour at all. WXP/VFP8. A file named "xxx" does not cause DIRCTORY("xxx") to return .T. for me.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform