RemoteFolder

interface RemoteFolder : RemoteEntry

An abstraction over a file entry for a folder on a pCloud account's filesystem.

See also

Functions

asFile
Link copied to clipboard
abstract fun asFile(): RemoteFile
Returns this RemoteEntry as RemoteFile See isFile.
asFolder
Link copied to clipboard
abstract fun asFolder(): RemoteFolder
Returns this RemoteEntry as a RemoteFolder See isFolder.
canCreate
Link copied to clipboard
abstract fun canCreate(): Boolean
canDelete
Link copied to clipboard
abstract fun canDelete(): Boolean
canModify
Link copied to clipboard
abstract fun canModify(): Boolean
canRead
Link copied to clipboard
abstract fun canRead(): Boolean
children
Link copied to clipboard
abstract fun children(): List<RemoteEntry>
copy
Link copied to clipboard
abstract fun copy(toFolder: RemoteFolder): RemoteEntry
abstract fun copy(toFolder: RemoteFolder, overwrite: Boolean): RemoteEntry
Copy this file to a specified folder.
created
Link copied to clipboard
abstract fun created(): Date
delete
Link copied to clipboard
abstract fun delete(): Boolean
Delete this file.
abstract fun delete(recursively: Boolean): Boolean
Delete this folder.
folderId
Link copied to clipboard
abstract fun folderId(): Long
id
Link copied to clipboard
abstract fun id(): String
isFile
Link copied to clipboard
abstract fun isFile(): Boolean
isFolder
Link copied to clipboard
abstract fun isFolder(): Boolean
isMine
Link copied to clipboard
abstract fun isMine(): Boolean
isShared
Link copied to clipboard
abstract fun isShared(): Boolean
lastModified
Link copied to clipboard
abstract fun lastModified(): Date
move
Link copied to clipboard
abstract fun move(toFolder: RemoteFolder): RemoteEntry
Move this file to a specified folder.
name
Link copied to clipboard
abstract fun name(): String
parentFolderId
Link copied to clipboard
abstract fun parentFolderId(): Long
reload
Link copied to clipboard
abstract fun reload(): RemoteFolder
abstract fun reload(recursively: Boolean): RemoteFolder
Reload this folder.
rename
Link copied to clipboard
abstract fun rename(newFilename: String): RemoteEntry
Rename this file.

Properties

ROOT_FOLDER_ID
Link copied to clipboard
val ROOT_FOLDER_ID: Int
The id of a pCloud account's filesystem root folder.

Inheritors

RealRemoteFolder
Link copied to clipboard