c++ how to create a directory from a path

前端 未结 5 1138
迷失自我
迷失自我 2020-12-20 15:06

what is a convenient way to create a directory when a path like this is given: \"\\server\\foo\\bar\\\"

note that the intermediate directories may not exist.

5条回答
  •  有刺的猬
    2020-12-20 16:05

    You can also use template bool create_directories(const Path & p) from Boost::Filesystem library. And it is available not only in Windows.

提交回复
热议问题