mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-14 01:08:22 +02:00
Modify BinaryManager to download version 6.1 and remove old dowloaded versions
This commit is contained in:
@ -370,11 +370,12 @@ module.exports.encodeUriPath = (path) => {
|
||||
*/
|
||||
module.exports.isWritable = async (directory) => {
|
||||
try {
|
||||
const accessTestFile = path.join(directory, 'accessTest')
|
||||
const accessTestFile = Path.join(directory, 'accessTest')
|
||||
await fs.writeFile(accessTestFile, '')
|
||||
await fs.remove(accessTestFile)
|
||||
return true
|
||||
} catch (err) {
|
||||
Logger.info(`[fileUtils] Directory is not writable "${directory}"`, err)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user