MakeSureDirectoryPathExists()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

MakeSureDirectoryPathExists()

Post by DoubleDutch »

Code: Select all

result=MakeSureDirectoryPathExists(path$)
Check to see if the path exists, if it doesn't then create it.

This is part of the Windows API, but it's very useful and I'm sure it would benefit the other systems too. Can it be made part of the native filesystem library?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system