Java Recursively Delete a Directory

From NovaOrdis Knowledge Base
Revision as of 20:37, 11 February 2020 by Ovidiu (talk | contribs) (→‎Internal)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

External

Internal

Overview

Files.walk(configFrameworkRoot.toPath())
         .sorted(Comparator.reverseOrder())
         .map(Path::toFile)
         .forEach(File::delete);