My probelm seems simple but I've not been able to find anything that works how I want.
I want to be able to check if a file exists and if it does not create that file along with the directory structure.
If
C:\FolderA\FolderB\File.txt does not exist
Then create
FolderA
FolderB
File.Txt
I found some code that worked if the whole path didn't exist but failed if the FolderA did already exist but not FolderB.
I want to be able to check if a file exists and if it does not create that file along with the directory structure.
If
C:\FolderA\FolderB\File.txt does not exist
Then create
FolderA
FolderB
File.Txt
I found some code that worked if the whole path didn't exist but failed if the FolderA did already exist but not FolderB.