mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
Update file.js
This commit is contained in:
parent
114ff0823b
commit
a3f67947f1
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,10 @@ file.exists = function (filepath) {
|
|||
return fs.exists(path.resolve(filepath))
|
||||
}
|
||||
|
||||
file.existsSync = function (filepath) {
|
||||
return fs.existsSync(path.resolve(filepath))
|
||||
}
|
||||
|
||||
file.read = function (filepath) {
|
||||
return fs.readFile(path.resolve(filepath), { encoding: 'utf8' }).catch(console.error)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue