mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-01 08:44:40 +02:00
Fix ebook url, add opus to uploader, set chapters after track updates
This commit is contained in:
parent
1637b6c7f0
commit
a590e795e3
6 changed files with 19 additions and 9 deletions
|
@ -439,18 +439,21 @@ class Server {
|
|||
})
|
||||
}
|
||||
|
||||
testFileSystem(req, res) {
|
||||
async testFileSystem(req, res) {
|
||||
Logger.debug(`[Server] Running fs test`)
|
||||
var paths = fs.readdir(global.appRoot)
|
||||
var paths = await fs.readdir(global.appRoot)
|
||||
Logger.debug(paths)
|
||||
var pathMap = {}
|
||||
if (paths && paths.length) {
|
||||
for (let i = 0; i < paths.length; i++) {
|
||||
var fullPath = Path.join(global.appRoot, paths[i])
|
||||
Logger.debug('Checking path', fullPath)
|
||||
var _paths = fs.readdir(fullPath)
|
||||
Logger.debug(_paths)
|
||||
pathMap[paths[i]] = _paths
|
||||
var isDirectory = fs.lstatSync(fullPath).isDirectory()
|
||||
if (isDirectory) {
|
||||
var _paths = await fs.readdir(fullPath)
|
||||
Logger.debug(_paths)
|
||||
pathMap[paths[i]] = _paths
|
||||
}
|
||||
}
|
||||
}
|
||||
Logger.debug('Finished fs test')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue