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 | |
parent | 4550b38cd0db6b89c913af0b3444dfd3f1beba36 (diff) | |
download | stasis-d943633d4d925d7340708371be8abb09adf579fe.tar.gz |
Move mkdirs() into utils module (#26)
Diffstat (limited to 'include')
-rw-r--r-- | include/copy.h | 8 | ||||
-rw-r--r-- | include/utils.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/copy.h b/include/copy.h index 609a6cf..a26ac30 100644 --- a/include/copy.h +++ b/include/copy.h @@ -32,14 +32,6 @@ int copytree(const char *srcdir, const char *destdir, unsigned op); /** - * 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); - -/** * Copy a single file * * ```c 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 |