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

External

Internal

Overview

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