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, search

External

Internal

Overview

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