Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Safe way to create a directory
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Safe way to create a directory
Miscellaneous
Thread ID:
00578887
Message ID:
00578887
Views:
82
Hi everyone,

I've just thought about something and made a quick test. Usually we have this kind of code:
if not directory(m.lcDir)
   md (m.lcDir)
endif
I decided to test it on "a" drive without disk inserted. To my surprise and relief, directory() function works fine. However, md command gave an error "File Access is denied". So, what do you think, what kind of code would be more correct? (Besides trapping for error, of course).

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform