GNOME Bugzilla – Bug 315336
Patch for gnome_vfs_xfer API (OPENSOURCE, OPENTARGET phases, and file_size fix)
Last modified: 2018-08-17 13:47:11 UTC
This patch contains two fixes, one is to make sure that OPENSOURCE and OPENTARGET phases are emitted to the user in the sync/progress callbacks. The other is to fix a problem where you copy a directory with subdirectories recursively. Currently the file_size of the children is set to be that of the parent directory (not in the initial directory but in sub directories).
Created attachment 51854 [details] [review] Patch to fix the problems mentioned
I commited the OPENSOURCE callback and the copy_file fix. However, i'm not sure about the OPENTARGET callback. We already call that a bit later, with the full uris. Calling it twice might cause problems. We need to look into that later.
gnome-vfs got deprecated in 2008. gnome-vfs is not under active development anymore and had its last code changes in 2011. Its codebase has been archived: https://gitlab.gnome.org/Archive/gnome-vfs/commits/master gio (in glib) and gvfs are its successors. See https://developer.gnome.org/gio/stable/ch33.html and https://people.gnome.org/~gicmo/gio-migration-guide/ for porting info. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent + supported version of glib/gio/gvfs. Thanks!