Skip to content

[NETBEANS-3094] NBI cleaner process must attempt to remove read-only files too#1504

Merged
geertjanw merged 3 commits intoapache:masterfrom
lbruun:cleaner-remove-readonly-too
Sep 16, 2019
Merged

[NETBEANS-3094] NBI cleaner process must attempt to remove read-only files too#1504
geertjanw merged 3 commits intoapache:masterfrom
lbruun:cleaner-remove-readonly-too

Conversation

@lbruun
Copy link
Copy Markdown
Contributor

@lbruun lbruun commented Sep 14, 2019

Currently the Windows NBI cleaner process fails to delete files/folders if they have the read-only attribute set. With this change the cleaner will - in such case - attempt to remove the read-only attribute before proceeding to delete the file/folder.

I've deliberately not squashed as each commit is a story of its own.

files too.

- Attempt to remove read-only attrib on a file/folder before 
attempting to delete it.
- Also added braces on existing statements to make the code more
readable.
@geertjanw
Copy link
Copy Markdown
Member

Looks good to me.

Copy link
Copy Markdown
Member

@neilcsmith-net neilcsmith-net left a comment

Choose a reason for hiding this comment

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

Fine in principle. Feel free to merge. Should be squashed despite comment against?

@geertjanw
Copy link
Copy Markdown
Member

Following request to not squash.

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.

4 participants