function close
Jump to headingclose(fd: number,callback?: NoParamCallback,): voidCloses the file descriptor. No arguments other than a possible exception are given to the completion callback.
Calling fs.close() on any file descriptor (fd) that is currently in use
through any other fs operation may lead to undefined behavior.
See the POSIX close(2) documentation for more detail.
Parameters Jump to heading
Jump to headingfd: numberoptional
Jump to headingcallback: NoParamCallbackReturn Type Jump to heading
void