Easy with Boost.Filesystem: create_directories
#include <boost/filesystem.hpp>
//...
boost::filesystem::create_directories("/tmp/a/b/c");
Returns: true
if a new directory was created, otherwise false
.
More Related Contents:
- How can I profile C++ code running on Linux?
- VS Code will not build c++ programs with multiple .ccp source files
- High resolution timer with C++ and Linux?
- Creating a new directory in C
- Are child processes created with fork() automatically killed when the parent is killed?
- Linking a shared library with another shared lib in linux
- Issuing system commands in Linux from C, C++
- How do I get a list of files in a directory in C++? [duplicate]
- will casting around sockaddr_storage and sockaddr_in break strict aliasing
- When including header files, is the path case sensitive?
- Spinlock versus Semaphore
- Proper way to create unique_ptr that holds an allocated array
- How to print pthread_t
- Netbeans 7.2 shows “Unable to resolve identifier” , although build is successful
- How to pause a pthread ANY TIME I want?
- How to set breakpoints on future shared libraries with a command flag
- How to enable core dump in my Linux C++ program [duplicate]
- Simple Linux Signal Handling
- Is there a limit of stack size of a process in linux
- How to create a temporary directory in C++?
- High delay in RS232 communication on a PXA270
- C++11: How to alias a function? [duplicate]
- Get home directory in Linux
- /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version CXXABI_1.3.8′ not found
- Clearing terminal in Linux with C++ code
- Is there an equivalent to WinAPI’s MAX_PATH under linux/unix?
- _GNU_SOURCE and __USE_GNU
- Default libraries linked in by gcc?
- Undefined reference to process(std::__cxx11::basic_string … ) when compiling affdex linux sample applications
- Why do I see 400x outlier timings when calling clock_gettime repeatedly?