add_entry_to_folder


Description:

[ Version ( since = "0.8.0" ) ]
public DocumentsEntry add_entry_to_folder (DocumentsEntry entry, DocumentsFolder folder, Cancellable? cancellable = null) throws Error

Add the given entry to the specified folder, and return an updated DocumentsEntry for entry.

If the entry is already in another folder, a copy will be added to the new folder. The copy and original will have different IDs. Note that entry can't be a DocumentsFolder that already exists on the server. It can be a new DocumentsFolder, or a DocumentsDocument that is either new or already present on the server.

Errors from ServiceError can be returned for exceptional conditions, as determined by the server.

Parameters:

this

an authenticated DocumentsService

entry

the DocumentsEntry to copy

folder

the DocumentsFolder to copy entry into

cancellable

optional Cancellable object, or null

Returns:

an updated DocumentsEntry, or null; unref with unref




2022 vala-language.org