Class GenerateDJUNIT

    • Constructor Detail

      • GenerateDJUNIT

        public GenerateDJUNIT()
    • Method Detail

      • deleteRecursive

        public static boolean deleteRecursive​(File path)
                                       throws FileNotFoundException
        By default File#delete fails for non-empty directories, it works like "rm". We need something a little more brutal - this does the equivalent of "rm -r". From: http://stackoverflow.com/questions/779519/delete-files-recursively-in-java. Note: USE CAREFULLY.
        Parameters:
        path - File; Root File Path
        Returns:
        true iff the file and all sub files/directories have been removed
        Throws:
        FileNotFoundException - on error (e.g., locked file)