mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-05 22:46:27 +01:00
Add:mtime,ctime,birthtime to audiobook folder and files
This commit is contained in:
1 parent
c81b12f459
commit
428a515c6a
7 files changed
+115
-31
No files matched your search
@@ -38,13 +38,6 @@ module.exports.comparePaths = (path1, path2) => {
|
||||
return path1 === path2 || Path.normalize(path1) === Path.normalize(path2)
|
||||
}
|
||||
|
||||
module.exports.getIno = (path) => {
|
||||
return fs.promises.stat(path, { bigint: true }).then((data => String(data.ino))).catch((err) => {
|
||||
Logger.error('[Utils] Failed to get ino for path', path, err)
|
||||
return null
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.isNullOrNaN = (num) => {
|
||||
return num === null || isNaN(num)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user