feat: 调整相关API名称

This commit is contained in:
coding 2018-05-13 16:17:48 +00:00
parent d5aa98b716
commit f19e51d8a7

View File

@ -144,6 +144,7 @@ fs.path = fs.canonical = fs.realpath = path
fs.write = fs.save = save fs.write = fs.save = save
fs.readdir = fs.list = list fs.readdir = fs.list = list
fs.rename = fs.move = move fs.rename = fs.move = move
fs.delete = fs.del = del
Object.assign(fs, { Object.assign(fs, {
concat: concat, concat: concat,
@ -151,8 +152,7 @@ Object.assign(fs, {
mkdirs: mkdirs, mkdirs: mkdirs,
file: file, file: file,
copy: copy, copy: copy,
read: read, read: read
del: del
}) })
exports = module.exports = fs exports = module.exports = fs