Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where for art Thou, Folder?
Message
From
30/06/2005 15:21:25
 
 
To
30/06/2005 15:00:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01027811
Message ID:
01027831
Views:
12
>>>>>Hey Gurus
>>>>>
>>>>>How do I determine the existence of a folder or directory?
>>>>>
>>>>>Is there a built in function for that?
>>>>>
>>>>>Thanks
>>>>
>>>>how about DIRECTORY(cDirectoryName)?
>>>
>>>Looks good. Thanks
>>
>>As far as I remember, Directory() has a serious disadvantage or side effect, I can't remember which, but I always use
>>lDirExist=ADir(dummy,cDirectoryName,'D')>0
>
>
>hehehe - nice. thats what i love on the fox - there are always many roads to rome. would be good to know what the disadvantages of Directory() are; because i've used it in a few places.

I checked some older messages, and this is what I found. When Directory() was introduced, it returned true for files without extensions, and it returned false for hidden directories. However, it seem that both of these issues have been fixed. But you how it is with old habits...!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform