Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 <a.kitta@arduino.cc>
1 parent 103acc4 commit cc2d557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎arduino-ide-extension/src/node/sketches-service-impl.ts‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /