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

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
}