创建文件夹

string folderPath = strDir + "\\PDF";//定义要创建文件夹的目录

if (0 != access(folderPath.c_str(), 0))//判断文件夹是否存在
{
mkdir(folderPath.c_str());//创建文件夹
}

posted @ 2021-09-03 15:44  firetuo  阅读(146)  评论(0)    收藏  举报