It just came to my attention that mkdir won't accept parameters such as "c:/firstdir/seconddir" for creating "firstdir" in the root and "seconddir" under "firstdir".
Of course I can create individual directories like so:
However, isn't there any tad more convenient solution?Code:mkdir ("c:/firstdir"); mkdir ("c:/firstdir/seconddir");
The "problem" I'm facing is when the user of my program decides to extract files to some sub-directory, it'll crash if he provides a path such as "c:/blah/subdir" and the program has to create both directories.
I had thought of simply splitting the directory string at the forward or backward slashes, etc., but wasn't sure if there would be some niftier solution, eh.