From 2d4a2fc03859065291fcb05d8df29ba8f50ab6e3 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 27 Mar 2016 18:32:33 +0200 Subject: gallery-utils: Copy extra files recursively This brings support for copying whole directories when specified in album extra files or template supplemental files. --- src/gallery-utils.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gallery-utils.h') diff --git a/src/gallery-utils.h b/src/gallery-utils.h index 4559fa4..1af8b84 100644 --- a/src/gallery-utils.h +++ b/src/gallery-utils.h @@ -27,6 +27,9 @@ G_BEGIN_DECLS #define IS_DIR_SEP(ch) ((ch) == '/' || (ch) == '~') #define IS_EQUAL_SIGN(ch) ((ch) == '=') +#define DEFAULT_DATA_DIR_MODE S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH + + /* * str_replace: replace substring 'search' with a 'replace' string * - multiple occurences of the string are replaced @@ -39,6 +42,11 @@ void str_replace (gchar **dst, const gchar *search, const gchar *replace); */ gboolean copy_file (const gchar *src, const gchar *dst); +/* + * copy_file_dir: recursively copy file or directory from src to dst + */ +gboolean copy_file_dir (const gchar *src, const gchar *dst); + /* * make_string: make string of 'substr' substrings * - returns newly allocated string -- cgit v1.2.3