Allow calls to implementation of copy and write even if the type of the
authorAlexander Larsson <alexl@redhat.com>
Thu, 17 Jan 2008 10:57:48 +0000 (10:57 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Thu, 17 Jan 2008 10:57:48 +0000 (10:57 +0000)
commit0026537f3711dc843075702345f748a21a45345e
tree877936588f39ee74991157b313cc9cc67500a376
parentf1332511ee2028a9c0cd5cc90f00fd8905f566fd
Allow calls to implementation of copy and write even if the type of the

2008-01-17  Alexander Larsson  <alexl@redhat.com>

        * gfile.c:
        (g_file_copy):
        (g_file_move):
Allow calls to implementation of copy and write
even if the type of the file implementations is
different. This can be used to implement native
upload and download calls in a vfs.

        * glocalfile.c:
        (g_local_file_move):
Protect against the case where move is called
with one file not being local.

Make sure we call the progress callback once
in the native move operation so that the caller
knows how many bytes were copied.

svn path=/trunk/; revision=6324
gio/ChangeLog
gio/gfile.c
gio/glocalfile.c