Krishan Bhasin
added a comment - 2017-11-29 22:27 Devin Nusbaum Yeah sorry it's been a busy few weeks (holiday then knocked out with flu). I will get to this before the end of the year, I'm still recovering from the illness.

SCM/JIRA link daemon
added a comment - 2017-12-14 19:53 Code changed in jenkins
User: Krishan Bhasin
Path:
core/src/main/java/hudson/FilePath.java
core/src/main/java/hudson/util/IOUtils.java
http://jenkins-ci.org/commit/jenkins/09bcc5d6538b3cfffbf71228ebd1679e3e20d8b2
Log:
JENKINS-47324 - Reduce usage of File.mkdirs() in FilePath and IOUtils (#3173)
Move an instance of renameTo() to Files.move()
Replace an instance of File.toURI() with an instance of Path.toUri()
Replace mkdirs() with Files.createDirectories()
Replace mkdir() with Files.createTempDirectory()
Undo addition of createTempDirectory() as per review comments
Return to use of FilePath#mkdirs(File) and instead modify it to use the new API.
Undo addition of toPath() in a URI conversion as it brings no benefits.
Replace new uses of toPath() with Util.fileToPath() to pre-handle runtime exceptions
Remove * import.
move mkdirs() to using FilePath method instead of File method.
Make IOUtils.mkdirs(File) use Java7 API calls
Add back accidentally removed imports.
Fixed use of wildcard import
Use utility method fileToPath() to handle potential exception thrown