set_file_size Method
Sets the size of a file or alternate stream.
Syntax
def set_file_size(file_name: str, size: int, password: str) -> None: ...
Remarks
This method sets the size of the file or alternate stream specified by FileName.
The value passed for FileName must be a vault-local absolute path.
The Size parameter specifies the new size of the file or alternate stream, which must be greater than or equal to 0.
Applications can also change the size of a file or alternate stream using the stream objects returned by the open_file and open_file_ex methods.
Note: This method can only be called when active is True, and cannot be called within events.