mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-07-08 01:30:39 +08:00
Add new function mkdirs
This commit is contained in:
8
fileop.h
8
fileop.h
@@ -117,5 +117,13 @@ namespace fileop {
|
||||
* @return true if the stream is successfully closed
|
||||
*/
|
||||
bool fclose(FILE* f);
|
||||
/**
|
||||
* @brief Creates a new directory recursively.
|
||||
* @param path Path for a new directory.
|
||||
* @param mode Directory permission. (Linux only)
|
||||
* @param allow_exists If directory is already exists return true rather than false.
|
||||
* @return true if create successfully otherwise false
|
||||
*/
|
||||
bool mkdirs(std::string path, int mode, bool allow_exists = false);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user