fs.close(fd[, callback])


关闭文件描述符。除了可能的异常之外,没有为完成回调提供任何参数。

¥Closes the file descriptor. No arguments other than a possible exception are given to the completion callback.

通过任何其他 fs 操作对当前正在使用的任何文件描述符 (fd) 调用 fs.close(),则可能会导致未定义的行为。

¥Calling fs.close() on any file descriptor (fd) that is currently in use through any other fs operation may lead to undefined behavior.

有关更多详细信息,请参阅 POSIX close(2) 文档。

¥See the POSIX close(2) documentation for more detail.