FileOperations

interface FileOperations

Functions

Link copied to clipboard
abstract suspend fun copy(fileIds: Set<String>, parentId: String?, shareId: String? = null)

Copies files with the specified fileIds to the directory with the parentId.

Link copied to clipboard
abstract suspend fun createDirectory(name: String, parentId: String? = null, shareId: String? = null)

Creates a directory with the name in the specified parent directory with the parentId.

Link copied to clipboard
abstract suspend fun enqueueToDownload(fileIds: Set<String>, priority: DownloadPriority, cacheMode: CacheMode?, targetDirUri: Uri?)

Adds file with fileIds to the download queue.

Link copied to clipboard
abstract suspend fun markAsOpened(fileId: String)

Mark file as opened by fileId

Link copied to clipboard
abstract suspend fun move(fileIds: Set<String>, parentId: String?, shareId: String? = null)

Moves files with the specified fileIds to the directory with the parentId.

Link copied to clipboard
abstract suspend fun moveToTrash(fileIds: Set<String>, shareId: String? = null)

Moves files with the specified fileIds to the trash.

Link copied to clipboard
abstract suspend fun rename(fileId: String, newName: String, shareId: String? = null)

Sets the file with fileId to a newName.