Skip to content

Instantly share code, notes, and snippets.

@talatham
Created June 12, 2013 14:46
Show Gist options
  • Save talatham/5765931 to your computer and use it in GitHub Desktop.
Save talatham/5765931 to your computer and use it in GitHub Desktop.
Create a folder path recursively.
'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