Skip to content
Commit 1270ba3b authored by Devin Nusbaum's avatar Devin Nusbaum Committed by Oleg Nenashev
Browse files

[JENKINS-48405] Use NIO in tryOnceDeleteFile and makeWritable (#3169)

* Use NIO in tryOnceDeleteFile and makeWritable

* Don't try to set PosixFileAttributes on Windows

* Do not create arbitrary exceptions in makeWritable to fix test failures on Windows

* Remove unhelpful layer of exception wrapping

* Add test exercising Util#makeWritable in Util#tryOnceDeleteFile

* Add test for deleting a non-existant file

* Return early if changing permissions with NIO succeeds
parent 3a529636
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment