RemoteEntry

interface RemoteEntry

An abstraction over a file entry 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.
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
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.
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
rename
Link copied to clipboard
abstract fun rename(newFilename: String): RemoteEntry
Rename this file.

Inheritors

RemoteFile
Link copied to clipboard
RemoteFolder
Link copied to clipboard