mkdir
Abstract
mkdir
creates directories recursively.
mkdir
はディレクトリを再帰的に作成します.
Header file
namespace sstd{
void mkdir(const char* pPath);
void mkdir(const std::string& path);
}
Usage
- main.cpp
#include <sstd/sstd.hpp> int main(){ sstd::mkdir("./tmp/a/b/c/"); sstd::system("tree ./tmp"); sstd::rm("./tmp"); }
- Execution result
./tmp └── a └── b └── c 3 directories, 0 files
Implementation
- Source: sstd/src/mkdir.cpp
- Header: sstd/src/mkdir.hpp
- Test: test/src_test/file/mkdir.cpp (Not implemented yet)