summaryrefslogtreecommitdiff
path: root/gio/gfile.h
diff options
context:
space:
mode:
authorMaxim Mikityanskiy <maxtram95@gmail.com>2020-09-07 19:20:01 +0300
committerPhilip Withnall <pwithnall@endlessos.org>2020-10-06 10:16:49 +0100
commit094eca7076d8db4d7e2d5344101b7d8e6bd9de36 (patch)
treec1ea74937285227cb40b7816389561d7ae890ab3 /gio/gfile.h
parent5017de65677353f036782d75901d334cb25eb9c5 (diff)
downloadglib-094eca7076d8db4d7e2d5344101b7d8e6bd9de36.tar.gz
gio: Expose g_file_build_attribute_list_for_copy
Expose a function that prepares an attribute query string to be passed to g_file_query_info() to get a list of attributes normally copied with the file. This function is used by the implementation of g_file_copy_attributes, and it's useful if one needs to split g_file_copy_attributes into two stages, for example, when nautilus does a recursive move of a directory. When files are moved from the source directory, its modification time changes. To preserve the mtime on the destination directory, it has to be queried before moving files and set after doing it, hence these two stages. Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
Diffstat (limited to 'gio/gfile.h')
-rw-r--r--gio/gfile.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gio/gfile.h b/gio/gfile.h
index 8b6d08385..4cff1a372 100644
--- a/gio/gfile.h
+++ b/gio/gfile.h
@@ -1094,6 +1094,12 @@ gboolean g_file_eject_mountable_with_operation_finish (GFile
GAsyncResult *result,
GError **error);
+GLIB_AVAILABLE_IN_2_68
+char * g_file_build_attribute_list_for_copy (GFile *file,
+ GFileCopyFlags flags,
+ GCancellable *cancellable,
+ GError **error);
+
GLIB_AVAILABLE_IN_ALL
gboolean g_file_copy_attributes (GFile *source,
GFile *destination,