Use Files#createTempDirectory

Proprietary

Use Files#createTempDirectory when the sequence File#createTempFile(..)->File#delete()->File#mkdir() is used for creating a temp directory.

org.openrewrite.java.security.UseFilesCreateTempDirectory
mod run . --recipe=org.openrewrite.java.security.UseFilesCreateTempDirectory

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.