You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by GitBox <gi...@apache.org> on 2019/06/13 12:48:14 UTC

[GitHub] [sling-org-apache-sling-feature-analyser] karlpauls edited a comment on issue #16: SLING-8251 - Support checking dependencies for content packages

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:
users@infra.apache.org


With regards,
Apache Git Services