Skip to content

Use Files.isDirectory/isWritable/isExecutable to determine permissions#2156

Merged
akurtakov merged 1 commit into
eclipse-wildwebdeveloper:masterfrom
merks:pr-issue-2106
Jun 25, 2026
Merged

Use Files.isDirectory/isWritable/isExecutable to determine permissions#2156
akurtakov merged 1 commit into
eclipse-wildwebdeveloper:masterfrom
merks:pr-issue-2106

Conversation

@merks

@merks merks commented Jun 25, 2026

Copy link
Copy Markdown
Contributor
  • Fix NodeJSManager.probeDirectoryForInstallation(File) to use java.nio.Files operations which is more reliable.
  • File.canWrite is not reliable on Windows with its complex access-list-based permissions. Also File.canExecute is not meaningful for a folder and is intended to indicate if a file (not a directory) is executable.

#2106

- Fix NodeJSManager.probeDirectoryForInstallation(File) to use
java.nio.Files operations which is more reliable.
- File.canWrite is not reliable on Windows with its complex
access-list-based permissions. Also File.canExecute is not meaningful
for a folder and is intended to indicate if a file (not a directory) is
executable.

eclipse-wildwebdeveloper#2106
@merks merks requested a review from akurtakov June 25, 2026 07:14

@akurtakov akurtakov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akurtakov akurtakov merged commit 1112195 into eclipse-wildwebdeveloper:master Jun 25, 2026
9 checks passed
@merks merks deleted the pr-issue-2106 branch June 25, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants