Skip to content

Commit cc2d557

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
fix: relaxed condition to check if resource exists
The original (`fs-extra`-based) implementation did not check if the file is writable either. Resources are not writable in mounted AppImages. Closes #1586 Signed-off-by: Akos Kitta <[email protected]>
1 parent 103acc4 commit cc2d557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: arduino-ide-extension/src/node/sketches-service-impl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ export class SketchesServiceImpl
660660

661661
private async exists(pathLike: string): Promise<boolean> {
662662
try {
663-
await fs.access(pathLike, constants.R_OK | constants.W_OK);
663+
await fs.access(pathLike, constants.R_OK);
664664
return true;
665665
} catch {
666666
return false;

0 commit comments

Comments
 (0)