看nodejs的官方文件,有以下內容:
File SystemBuffer APIClass: fs.FSWatcherEvent: "change"Event: "error"watcher.close()Class: fs.ReadStreamEvent: "open"Event: "close"readStream.bytesReadreadStream.pathClass: fs.StatsStat Time ValuesClass: fs.WriteStreamEvent: "open"Event: "close"writeStream.bytesWrittenwriteStream.pathfs.access(path[, mode], callback)fs.accessSync(path[, mode])fs.appendFile(file, data[, options], callback)fs.appendFileSync(file, data[, options])fs.chmod(path, mode, callback)fs.chmodSync(path, mode)fs.chown(path, uid, gid, callback)fs.chownSync(path, uid, gid)fs.close(fd, callback)fs.closeSync(fd)fs.constantsfs.createReadStream(path[, options])fs.createWriteStream(path[, options])fs.exists(path, callback)fs.existsSync(path)fs.fchmod(fd, mode, callback)fs.fchmodSync(fd, mode)fs.fchown(fd, uid, gid, callback)fs.fchownSync(fd, uid, gid)fs.fdatasync(fd, callback)fs.fdatasyncSync(fd)fs.fstat(fd, callback)fs.fstatSync(fd)fs.fsync(fd, callback)fs.fsyncSync(fd)fs.ftruncate(fd, len, callback)fs.ftruncateSync(fd, len)fs.futimes(fd, atime, mtime, callback)fs.futimesSync(fd, atime, mtime)fs.lchmod(path, mode, callback)fs.lchmodSync(path, mode)fs.lchown(path, uid, gid, callback)fs.lchownSync(path, uid, gid)fs.link(srcpath, dstpath, callback)fs.linkSync(srcpath, dstpath)fs.lstat(path, callback)fs.lstatSync(path)fs.mkdir(path[, mode], callback)fs.mkdirSync(path[, mode])fs.mkdtemp(prefix[, options], callback)fs.mkdtempSync(prefix[, options])fs.open(path, flags[, mode], callback)fs.openSync(path, flags[, mode])fs.read(fd, buffer, offset, length, position, callback)fs.readdir(path[, options], callback)fs.readdirSync(path[, options])fs.readFile(file[, options], callback)fs.readFileSync(file[, options])fs.readlink(path[, options], callback)fs.readlinkSync(path[, options])fs.readSync(fd, buffer, offset, length, position)fs.realpath(path[, options], callback)fs.realpathSync(path[, options])fs.rename(oldPath, newPath, callback)fs.renameSync(oldPath, newPath)fs.rmdir(path, callback)fs.rmdirSync(path)fs.stat(path, callback)fs.statSync(path)fs.symlink(target, path[, type], callback)fs.symlinkSync(target, path[, type])fs.truncate(path, len, callback)fs.truncateSync(path, len)fs.unlink(path, callback)fs.unlinkSync(path)fs.unwatchFile(filename[, listener])fs.utimes(path, atime, mtime, callback)fs.utimesSync(path, atime, mtime)fs.watch(filename[, options][, listener])AvailabilityInodesFilename ArgumentCaveatsfs.watchFile(filename[, options], listener)fs.write(fd, buffer, offset, length[, position], callback)fs.write(fd, data[, position[, encoding]], callback)fs.writeFile(file, data[, options], callback)fs.writeFileSync(file, data[, options])fs.writeSync(fd, buffer, offset, length[, position])fs.writeSync(fd, data[, position[, encoding]])FS ConstantsFile Access ConstantsFile Open ConstantsFile Type ConstantsFile Mode Constants
看nodejs的官方文件,有以下內容:
File SystemBuffer APIClass: fs.FSWatcherEvent: "change"Event: "error"watcher.close()Class: fs.ReadStreamEvent: "open"Event: "close"readStream.bytesReadreadStream.pathClass: fs.StatsStat Time ValuesClass: fs.WriteStreamEvent: "open"Event: "close"writeStream.bytesWrittenwriteStream.pathfs.access(path[, mode], callback)fs.accessSync(path[, mode])fs.appendFile(file, data[, options], callback)fs.appendFileSync(file, data[, options])fs.chmod(path, mode, callback)fs.chmodSync(path, mode)fs.chown(path, uid, gid, callback)fs.chownSync(path, uid, gid)fs.close(fd, callback)fs.closeSync(fd)fs.constantsfs.createReadStream(path[, options])fs.createWriteStream(path[, options])fs.exists(path, callback)fs.existsSync(path)fs.fchmod(fd, mode, callback)fs.fchmodSync(fd, mode)fs.fchown(fd, uid, gid, callback)fs.fchownSync(fd, uid, gid)fs.fdatasync(fd, callback)fs.fdatasyncSync(fd)fs.fstat(fd, callback)fs.fstatSync(fd)fs.fsync(fd, callback)fs.fsyncSync(fd)fs.ftruncate(fd, len, callback)fs.ftruncateSync(fd, len)fs.futimes(fd, atime, mtime, callback)fs.futimesSync(fd, atime, mtime)fs.lchmod(path, mode, callback)fs.lchmodSync(path, mode)fs.lchown(path, uid, gid, callback)fs.lchownSync(path, uid, gid)fs.link(srcpath, dstpath, callback)fs.linkSync(srcpath, dstpath)fs.lstat(path, callback)fs.lstatSync(path)fs.mkdir(path[, mode], callback)fs.mkdirSync(path[, mode])fs.mkdtemp(prefix[, options], callback)fs.mkdtempSync(prefix[, options])fs.open(path, flags[, mode], callback)fs.openSync(path, flags[, mode])fs.read(fd, buffer, offset, length, position, callback)fs.readdir(path[, options], callback)fs.readdirSync(path[, options])fs.readFile(file[, options], callback)fs.readFileSync(file[, options])fs.readlink(path[, options], callback)fs.readlinkSync(path[, options])fs.readSync(fd, buffer, offset, length, position)fs.realpath(path[, options], callback)fs.realpathSync(path[, options])fs.rename(oldPath, newPath, callback)fs.renameSync(oldPath, newPath)fs.rmdir(path, callback)fs.rmdirSync(path)fs.stat(path, callback)fs.statSync(path)fs.symlink(target, path[, type], callback)fs.symlinkSync(target, path[, type])fs.truncate(path, len, callback)fs.truncateSync(path, len)fs.unlink(path, callback)fs.unlinkSync(path)fs.unwatchFile(filename[, listener])fs.utimes(path, atime, mtime, callback)fs.utimesSync(path, atime, mtime)fs.watch(filename[, options][, listener])AvailabilityInodesFilename ArgumentCaveatsfs.watchFile(filename[, options], listener)fs.write(fd, buffer, offset, length[, position], callback)fs.write(fd, data[, position[, encoding]], callback)fs.writeFile(file, data[, options], callback)fs.writeFileSync(file, data[, options])fs.writeSync(fd, buffer, offset, length[, position])fs.writeSync(fd, data[, position[, encoding]])FS ConstantsFile Access ConstantsFile Open ConstantsFile Type ConstantsFile Mode Constants