O_TRUNC

external val O_TRUNC: Double(source)

Constant for fs.open(). Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero.