Update file.js
This commit is contained in:
1 parent
a07c330a43
commit
79658cbe3f
1 file changed
+1
-1
@@ -40,7 +40,7 @@ file.create = function (filepath, data = '') {
|
||||
|
||||
return file
|
||||
.createDir(dir)
|
||||
.then(() => fs.writeFile(filepath, data, { encoding: 'utf8', flag: 'w' }))
|
||||
.then(() => file.write(filepath, data))
|
||||
.catch(console.error)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user