MCPcopy Create free account
hub / github.com/apache/ant / removeEmptyDirectories

Method removeEmptyDirectories

src/main/org/apache/tools/ant/taskdefs/Sync.java:290–317  ·  view source on GitHub ↗

Removes all empty directories from a directory. Note that a directory that contains only empty directories, directly or not, will be removed! Recurses depth-first to find the leaf directories which are empty and removes them, then unwinds the recursion stack, removing directorie

(File dir, boolean removeIfEmpty,
                                       Set<File> preservedEmptyDirectories)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

executeMethod · 0.95

Calls 6

logMethod · 0.65
deleteMethod · 0.65
isDirectoryMethod · 0.45
listFilesMethod · 0.45
containsMethod · 0.45
listMethod · 0.45

Tested by

no test coverage detected