Github user kinow commented on a diff in the pull request: https://github.com/apache/jena/pull/459#discussion_r209416731 --- Diff: jena-base/src/main/java/org/apache/jena/atlas/io/IO.java --- @@ -364,4 +369,31 @@ public static String uniqueFilename(String directory, String base, String ext) { return null ; } } + + /** Delete everything from a {@code Path} start point, including the path itself. + * This function works on files or directories. + * This function does not follow symbolic links. + */ + public static void deleteAll(Path start) { --- End diff -- `Files.delete()` is a no-no because it would remove the symlink? I had a look at `FileUtils` from Commons IO (project dependency) but not sure if there's a method that does the same as this method (and Java7's Files/Paths is a nice API).
---