Bugfix: double-negative in directory-creation check

This commit is contained in:
Hippo 2020-01-03 16:04:25 +05:30
parent f402fe6195
commit 629549910d
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ const createDirIfNotExist = async (client, folder) => {
console.debug(`Noting missing subdirectory: ${folder}`)
// first, create the parent directory (if required)
if (!!await createDirIfNotExist(client, path.dirname(folder))) {
if (!await createDirIfNotExist(client, path.dirname(folder))) {
// if not created, we fail too :-/
return false
}