-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with-temp-dir
can raise a AccessDeniedException
exception
#119
Comments
Is this an artificial example or a real-life-scenario example? |
It is a minimal example, the real world example is that I run maven in a temp dir to see what files are installed and generate a cache. For some reason, some directories are read-only. On those cases, you don't have control over the external tool. But if that case doesn't make sense, or you don't what to support it, feel free to close this issue. |
I'm fine with receiving the PR. Please make the |
This code fails with an exception:
To delete a file, the parent directory must have the
OWNER_WRITE
permission.IMO,
with-temp-dir
shouldn't fail in this case.A possible solution could be to add a flag to
delete-tree
(:force?
?), to set theOWNER_WRITE
permission in:pre-visit-dir
, and then updatewith-temp-dir
to invoke it with the flag set to true.If it makes sense to you, I could open a PR.
The text was updated successfully, but these errors were encountered: