I want an easy way to create multiple directories in C++ on Linux.
For example, I want to save a file lola.file in the directory:
/tmp/a/b/c
but if the directories are not there I want them to be created automagically. A working example would be perfect.
Easy with Boost.Filesystem:
create_directoriesReturns:
trueif a new directory was created, otherwisefalse.