TuoniFile¶
- class tuoni.TuoniFile(conf, c2)[source]¶
A class that provides data and functionality for a stored files.
- fileId¶
The unique identifier (GUID) for the file.
- Type:
GUID
- originalFileName¶
The original filename.
- Type:
str
- size¶
Size of the file.
- Type:
int
- filePaths¶
List of filepaths
- Type:
list
- downloadHref¶
A download path.
- Type:
str
- replace(file_content: bytes, original_filename: str = None)[source]¶
Replace the content of this hosted file with new bytes.
- Parameters:
file_content (bytes) – The new file content.
original_filename (str) – Optional filename to use; defaults to the current
originalFileName.
Examples
>>> f.replace(b"updated content")