mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 16:08:43 +02:00
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:
committed by
Alexander Larsson
parent
6f605509fd
commit
6394ae6fdb
@@ -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,
|
||||
|
Reference in New Issue
Block a user