karlpauls edited a comment on issue #16: SLING-8251 - Support checking dependencies for content packages URL: https://github.com/apache/sling-org-apache-sling-feature-analyser/pull/16#issuecomment-501687686 @simonetripodi, that is problematic as deleteOnExit is not going to delete dirs if they are not empty. I was more thinking about not removing the try/finally but rather change the deleteRecursive to look like: ``` private void deleteOnExitRecursive(File file) { file.deleteOnExit(); if (file.isDirectory()) { File[] childs = file.listFiles(); if (childs != null) { for (File child : childs) { deleteRecursive(child); } } } } ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
