Created
June 11, 2017 01:40
-
-
Save sat0b/87d24041f47589fabfd5ca989f5b9e84 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <boost/filesystem.hpp> | |
| namespace fs = boost::filesystem; | |
| int main() { | |
| const fs::path path("dir"); | |
| boost::system::error_code error; | |
| const bool result = fs::create_directory(path, error); | |
| if (!result || error) { | |
| std::cout << "failed creating directory" << std::endl; | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
g++ -l boost_filesystem -l boost_system test_mkdir.cpp