Interface File

Represents a file.

interface File {
    @type: "file";
    expected_size: number;
    id: number;
    local: LocalFile;
    remote: RemoteFile;
    size: number;
}

Properties

@type: "file"
expected_size: number

Approximate file size in bytes in case the exact file size is unknown. Can be used to show download/upload progress.

id: number

Unique file identifier.

local: LocalFile

Information about the local copy of the file.

remote: RemoteFile

Information about the remote copy of the file.

size: number

File size, in bytes; 0 if unknown.