fsPromises.truncate(path[, len])


path 处的内容截断(缩短或延长长度)至 len 字节。

【Truncates (shortens or extends the length) of the content at path to len bytes.】