Skip to content

Commit

Permalink
fixed an issue with creating the log folder for writing the webdriver…
Browse files Browse the repository at this point in the history
… logs
  • Loading branch information
beatfactor committed Jan 22, 2022
1 parent c564e5e commit 2cff6df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ class BaseService {
return true;
}

await createFolder(logPath);

const filePath = this.getOutputFilePath();
const folderPath = path.dirname(filePath);
await createFolder(folderPath);

return new Promise((resolve, reject) => {
fs.writeFile(filePath, this.output, (err) => {
Expand Down

0 comments on commit 2cff6df

Please sign in to comment.