public static void cleanDirectory ( File directory ) throws IOException { checkNotNull ( directory , "directory" ) ; guardIfWindows ( FileUtils :: cleanDirectoryInternal , directory ) ; }
Removes all files contained within a directory without removing the directory itself .