CPlusPlus
Create Folder For File Path If Parent Directory Not Exist
We want to create a file which path looks like /Folder1/Folder2/Folder3/file.txt. The parent directory Folder3 of file.txt has to be there, or the creating action will fail. Similarly, Folder2 and Folder1 need to be on the disk firstly. If you are a Linux OS user, you can use the following Read more…