There are a couple of problems running this code for deleting a directory recursively: https://github.com/HadoopGenomics/Hadoop-BAM/blob/master/src/main/java/org/seqdoop/hadoop_bam/util/NIOFileUtil.java#L63-L74
- The code for
visitFile is never called.
Files.delete(dir) fails with "Can't perform I/O on pseudo-directories (trailing slash)"
It would be good to add tests for Files.walkFileTree (and Files.walk) to the unit tests.