DEP0081:fs.truncate() 使用文件描述符


¥DEP0081: fs.truncate() using a file descriptor

类型:运行时

¥Type: Runtime

不推荐使用 fs.truncate() fs.truncateSync() 与文件描述符一起使用。请使用 fs.ftruncate()fs.ftruncateSync() 来处理文件描述符。

¥fs.truncate() fs.truncateSync() usage with a file descriptor is deprecated. Please use fs.ftruncate() or fs.ftruncateSync() to work with file descriptors.