summaryrefslogtreecommitdiff
path: root/src/gallery-utils.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2016-03-27 18:32:33 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2016-04-03 17:29:44 +0200
commit2d4a2fc03859065291fcb05d8df29ba8f50ab6e3 (patch)
treef296db6c380d8f9c0ea89ea03ad2cc5828585e88 /src/gallery-utils.h
parent415fa18ad93493b7073a69cda3af27863537185b (diff)
downloadcataract-2d4a2fc03859065291fcb05d8df29ba8f50ab6e3.tar.xz
gallery-utils: Copy extra files recursively
This brings support for copying whole directories when specified in album extra files or template supplemental files.
Diffstat (limited to 'src/gallery-utils.h')
-rw-r--r--src/gallery-utils.h8
1 files changed, 8 insertions, 0 deletions
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
@@ -40,6 +43,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
*/