mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Update file.js
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user