Add G_FILE_COPY_NO_FALLBACK_FOR_MOVE flag

2007-12-03  Alexander Larsson  <alexl@redhat.com>

        * gfile.[ch]:
        * glocalfile.c:
	Add G_FILE_COPY_NO_FALLBACK_FOR_MOVE flag



svn path=/trunk/; revision=6015
This commit is contained in:
Alexander Larsson
2007-12-03 09:11:48 +00:00
committed by Alexander Larsson
parent 6f605509fd
commit 6394ae6fdb
4 changed files with 24 additions and 15 deletions

View File

@@ -2081,6 +2081,14 @@ g_file_move (GFile *source,
}
}
if (flags & G_FILE_COPY_NO_FALLBACK_FOR_MOVE)
{
g_set_error (error, G_IO_ERROR,
G_IO_ERROR_NOT_SUPPORTED,
_("Operation not supported"));
return FALSE;
}
flags |= G_FILE_COPY_ALL_METADATA;
if (!g_file_copy (source, destination, flags, cancellable,
progress_callback, progress_callback_data,