truncate# barecat.io.fileobj.BarecatReadWriteFileObject.truncate(size=None)[source]# Truncate file to size bytes. File pointer is left unchanged. Size defaults to the current IO position as reported by tell(). Returns the new size. Parameters: size (int) Return type: int