BaseFile#

class BaseFile[source]#

The base JSON representation of a file.

type: Literal['file']#

This is a file, not a directory.

id: str#

The id of this file

name: str#

The local name of this file, this does not include any parent directory names, nor does it include trailing slashes for directories.

size: Optional[int]#

If we already know the file size of this file this will be provided here.

hash: Optional[str]#

The hash of the file contents if we know this.