Skip to content

Commit

Permalink
Fixed removal of directory
Browse files Browse the repository at this point in the history
  • Loading branch information
KenCorma committed Oct 28, 2024
1 parent 7d0f441 commit cc78478
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pythonEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ export class PythonEnvironment {
path.join(this.pythonRootPath, fileName)
);
});
await fsPromises.rm(path.join(this.appResourcesPath, 'output'));
try {
// This is a cleanup step, and is non critical if failed.
await fsPromises.rm(path.join(this.appResourcesPath, 'output'), { recursive: true, force: true });
} catch (error) {
null;
}
}

const exitCode = await this.installRequirements();
Expand Down

0 comments on commit cc78478

Please sign in to comment.