Created
June 12, 2013 14:46
-
-
Save talatham/5765931 to your computer and use it in GitHub Desktop.
Create a folder path recursively.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'Create folder path recursively | |
Function GeneratePath(pFolderPath) | |
GeneratePath = False | |
If Not wFile.FolderExists(pFolderPath) Then | |
If GeneratePath(wFile.GetParentFolderName(pFolderPath)) Then | |
GeneratePath = True | |
Call wFile.CreateFolder(pFolderPath) | |
End If | |
Else | |
GeneratePath = True | |
End If | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment