mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-27 17:46:53 +02:00
Bug 515777 - incorrect date&time on copy
2008-12-09 Alexander Larsson <alexl@redhat.com> Bug 515777 - incorrect date&time on copy * glocalfile.c: (g_local_file_class_init): Copy mtime by default * gfile.c: Change docs about G_FILE_COPY_ALL_METADATA to not mention mtime as an example. svn path=/trunk/; revision=7738
This commit is contained in:
parent
1f76b492d0
commit
39b3b41484
@ -1,3 +1,15 @@
|
|||||||
|
2008-12-09 Alexander Larsson <alexl@redhat.com>
|
||||||
|
|
||||||
|
Bug 515777 - incorrect date&time on copy
|
||||||
|
|
||||||
|
* glocalfile.c:
|
||||||
|
(g_local_file_class_init):
|
||||||
|
Copy mtime by default
|
||||||
|
|
||||||
|
* gfile.c:
|
||||||
|
Change docs about G_FILE_COPY_ALL_METADATA to not mention
|
||||||
|
mtime as an example.
|
||||||
|
|
||||||
2008-12-08 Matthias Clasen <mclasen@redhat.com>
|
2008-12-08 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Bug 558298 – Hide ecryptfs mounts
|
Bug 558298 – Hide ecryptfs mounts
|
||||||
|
@ -2128,9 +2128,10 @@ build_attribute_list_for_copy (GFileAttributeInfoList *attributes,
|
|||||||
*
|
*
|
||||||
* Normally only a subset of the file attributes are copied,
|
* Normally only a subset of the file attributes are copied,
|
||||||
* those that are copies in a normal file copy operation
|
* those that are copies in a normal file copy operation
|
||||||
* (which for instance does not include e.g. mtime). However
|
* (which for instance does not include e.g. owner). However
|
||||||
* if #G_FILE_COPY_ALL_METADATA is specified in @flags, then
|
* if #G_FILE_COPY_ALL_METADATA is specified in @flags, then
|
||||||
* all the metadata that is possible to copy is copied.
|
* all the metadata that is possible to copy is copied. This
|
||||||
|
* is useful when implementing move by copy + delete source.
|
||||||
*
|
*
|
||||||
* Returns: %TRUE if the attributes were copied successfully, %FALSE otherwise.
|
* Returns: %TRUE if the attributes were copied successfully, %FALSE otherwise.
|
||||||
**/
|
**/
|
||||||
|
@ -179,11 +179,16 @@ g_local_file_class_init (GLocalFileClass *klass)
|
|||||||
g_file_attribute_info_list_add (list,
|
g_file_attribute_info_list_add (list,
|
||||||
G_FILE_ATTRIBUTE_TIME_MODIFIED,
|
G_FILE_ATTRIBUTE_TIME_MODIFIED,
|
||||||
G_FILE_ATTRIBUTE_TYPE_UINT64,
|
G_FILE_ATTRIBUTE_TYPE_UINT64,
|
||||||
|
G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE |
|
||||||
G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED);
|
G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED);
|
||||||
g_file_attribute_info_list_add (list,
|
g_file_attribute_info_list_add (list,
|
||||||
G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC,
|
G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC,
|
||||||
G_FILE_ATTRIBUTE_TYPE_UINT32,
|
G_FILE_ATTRIBUTE_TYPE_UINT32,
|
||||||
|
G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE |
|
||||||
G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED);
|
G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED);
|
||||||
|
/* When copying, the target file is accessed. Replicating
|
||||||
|
* the source access time does not make sense in this case.
|
||||||
|
*/
|
||||||
g_file_attribute_info_list_add (list,
|
g_file_attribute_info_list_add (list,
|
||||||
G_FILE_ATTRIBUTE_TIME_ACCESS,
|
G_FILE_ATTRIBUTE_TIME_ACCESS,
|
||||||
G_FILE_ATTRIBUTE_TYPE_UINT64,
|
G_FILE_ATTRIBUTE_TYPE_UINT64,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user