Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.h')
-rw-r--r--src/misc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/misc.h b/src/misc.h
index 60f1a0f..cb89539 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -251,6 +251,15 @@ gboolean cr_better_copy_file(const char *src,
*/
int cr_remove_dir(const char *path, GError **err);
+/** Move a directory and its contents. Native move is preferred,
+ * if not supported copy and delete fallback is used.
+ * @param srcDir A source directory path
+ * @param dstDir A destination directory path
+ * @param err GError **
+ * @return TRUE on success, FALSE otherwise
+ */
+gboolean cr_move_recursive(const char *srcDir, const char *dstDir, GError **err);
+
/** Normalize path (Path with exactly one trailing '/').
*@param path path
*@return mallocated string with normalized path or NULL