Skip to content

Commit daaee39

Browse files
author
Akos Kitta
committed
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 0d05509 commit daaee39

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
@@ -647,7 +647,7 @@ export class SketchesServiceImpl
647647

648648
private async exists(pathLike: string): Promise<boolean> {
649649
try {
650-
await fs.access(pathLike, constants.R_OK | constants.W_OK);
650+
await fs.access(pathLike, constants.R_OK);
651651
return true;
652652
} catch {
653653
return false;

0 commit comments

Comments
 (0)