mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-16 12:24:56 +02:00
Modify BinaryManager to download version 6.1 and remove old dowloaded versions
This commit is contained in:
parent
b9ec4068ee
commit
d43a1109c8
3 changed files with 207 additions and 54 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue