mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-17 18:40:59 +02:00
Fix ebook url, add opus to uploader, set chapters after track updates
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user