aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-08-13 16:02:45 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-08-13 16:02:45 -0400
commitc9333378605b67a13555f587955a900baf89cb60 (patch)
tree4fd9134ac7d7bd5e8b06eb6b32ee1b7cc0fe4781 /include
parent4550b38cd0db6b89c913af0b3444dfd3f1beba36 (diff)
downloadstasis-move-mkdirs.tar.gz
Move mkdirs() into utils modulemove-mkdirs
Diffstat (limited to 'include')
-rw-r--r--include/copy.h8
-rw-r--r--include/utils.h8
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