Open liuty10 opened 4 years ago
https://stackoverflow.com/questions/675039/how-can-i-create-directory-tree-in-c-linux
#include <sys/stat.h> struct stat info; if (stat(logpath, &info) != 0){ mode_t mode = 0755; int ret = mkdir(logpath, mode); if (ret != 0) fprintf(stderr, "create file failed!"); }
https://stackoverflow.com/questions/675039/how-can-i-create-directory-tree-in-c-linux