mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update file.js
This commit is contained in:
parent
a07c330a43
commit
79658cbe3f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue