GNOME Bugzilla – Bug 591439
GCMD doesn't use MOVE/COPY methods for the WebDav backend on the same server.
Last modified: 2010-05-30 08:12:27 UTC
Please describe the problem: It uses the PUT (and DELETE?) methods instead, i.e. all files are downloaded first and consequently uploaded again to the same server. I tried both copying from one panel to another as well as DnD, both uses PUT. Tested with stable gcmd 1.2.8. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Backend underlying methods for accessing WebDav resources are implemented in GnomeVFS, and there is no API for controlling it. I'm afraid there is nothing to be done about it - except for switching to gio/gvfs, of course. I'm not closing the bug, marking as gcmd-2.0 goal.
I'm not sure if I understand well, what You say. If You _rename_ a file in GCMD using gnomeVFS/webdav it does use the MOVE method, so there must be a way to do it for moving files between panels as well. Or am I totally wrong?
Gnome-vfs has gnome_vfs_move() which should be used instead of gnome_vfs_xfer* if source and target are on te same filesystem, which can be tested by the function gnome_vfs_check_same_fs()... So this could definitely be done with gnome-vfs and can be done before the move to the gio/gvfs...
There is a small app in gnome-vfs package (http://ftp.gnome.org/pub/GNOME/sources/gnome-vfs/2.24/gnome-vfs-2.24.1.tar.bz2): gnomevfs-mv The utility basically calls gnome_vfs_move() only and is perfect for testing if GnomeVFS supports MOVE for WebDAV. Please buils the package and verify if it is working as needed. The usage is: programs/gnomevfs-mv from_uri to_uri
Hm. Can I assume that this bug is OBSOLETE with the move to GIO?
Hm, It depends on the implementation. (gnome-vfs also allowed for using MOVE and nautilus did it...) Is the gio already implemented in some branch? (Sorry I cannot help more now, I'm quite busy for a half year o so..)
epiotr, I'm closing this as OBSOLETE since I assume gvfs to be obsolete.