feat: 调整相关API名称
This commit is contained in:
parent
d5aa98b716
commit
f19e51d8a7
@ -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
|
Loading…
Reference in New Issue
Block a user