truncate

The truncate() method of the FileSystemWritableFileStream interface resizes the file associated with the stream to the specified size in bytes.

MDN Reference


val ERROR CLASS: Symbol not found for WriteCommandType.Companion.truncate: WriteCommandType(source)