Node.js 文件系统

2020-06-17 05:30:31易采站长站整理
64fs.exists(path, callback)
检测给定的路径是否存在。65fs.existsSync(path)
同步版的 fs.exists.66fs.access(path[, mode], callback)
测试指定路径用户权限。67fs.accessSync(path[, mode])
同步版的 fs.access。68fs.createReadStream(path[, options])
返回ReadStream 对象。69fs.createWriteStream(path[, options])
返回 WriteStream 对象。70fs.symlink(srcpath, dstpath[, type], callback)
异步 symlink().回调函数没有参数,但可能抛出异常。

更多内容,请查看官网文件模块描述:File System。