RemoteFile
An abstraction over a file entry for a file on a pCloud account's filesystem.
See also
Functions
asFile
Link copied to clipboard
Returns this RemoteEntry as RemoteFile See isFile.
asFolder
Link copied to clipboard
Returns this RemoteEntry as a RemoteFolder See isFolder.
byteStream
Link copied to clipboard
Open an InputStream to the resource.
contentType
Link copied to clipboard
copy
Link copied to clipboard
abstract fun copy(toFolder: RemoteFolder, overwrite: Boolean): RemoteEntry
Content copied to clipboard
Copy this file to a specified folder.
createFileLink
Link copied to clipboard
Create a file link for this file The method will block until the link is created or an exception is thrown.
download
Link copied to clipboard
Download the contained data to a DataSinkThe method will block until the download operation completes or an exception is thrown.
Download the contained data to a DataSink Attempts to download the resource data to the specified location, optionally sending progress updates via a ProgressListener.
lastModified
Link copied to clipboard
move
Link copied to clipboard
Move this file to a specified folder.
parentFolderId
Link copied to clipboard
rename
Link copied to clipboard
Rename this file.