diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2024-08-13 17:42:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-13 17:42:35 -0400 |
commit | d943633d4d925d7340708371be8abb09adf579fe (patch) | |
tree | 4fd9134ac7d7bd5e8b06eb6b32ee1b7cc0fe4781 /include/utils.h | |
parent | 4550b38cd0db6b89c913af0b3444dfd3f1beba36 (diff) | |
download | stasis-d943633d4d925d7340708371be8abb09adf579fe.tar.gz |
Move mkdirs() into utils module (#26)
Diffstat (limited to 'include/utils.h')
-rw-r--r-- | include/utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/utils.h b/include/utils.h index eee2e30..a3d244a 100644 --- a/include/utils.h +++ b/include/utils.h @@ -357,4 +357,12 @@ struct StrList *listdir(const char *path); */ long get_cpu_count(); +/** + * Create all leafs in directory path + * @param _path directory path to create + * @param mode mode_t permissions + * @return + */ +int mkdirs(const char *_path, mode_t mode); + #endif //STASIS_UTILS_H |