Example #1
0
/**
 * mate_vfs_move_uri:
 * @old_uri: source uri.
 * @new_uri: destination uri.
 * @force_replace: if %TRUE, move @old_uri to @new_uri even if there 
 * is already a file at @new_uri. If there is a file, it will be discarded.
 * 
 * Move a file from uri @old_uri to @new_uri.  This will only work if @old_uri 
 * and @new_uri are on the same file system.  Otherwise, it is necessary 
 * to use the more general mate_vfs_xfer_uri() function.
 * 
 * Return value: an integer representing the result of the operation.
 */
MateVFSResult
mate_vfs_move_uri (MateVFSURI *old_uri,
		    MateVFSURI *new_uri,
		    gboolean force_replace)
{
	return mate_vfs_move_uri_cancellable (old_uri, new_uri, 
					       force_replace, NULL);
}
static MateVFSResult
do_move (MateVFSMethod *method,
	 MateVFSURI *old_uri,
	 MateVFSURI *new_uri,
	 gboolean force_replace,
	 MateVFSContext *context)
{
	/* FIXME bugzilla.eazel.com 3837: Not implemented. */
	return mate_vfs_move_uri_cancellable (old_uri, new_uri, force_replace, context);
}