fs.ftruncateSync(fd[, len])


    截断文件描述符。 返回 undefined

    Truncates the file descriptor. Returns undefined.

    For detailed information, see the documentation of the asynchronous version of this API: fs.ftruncate().