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

Method removeOrphanFiles

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

Removes all files and folders not found as keys of a table (used as a set!). If the provided file is a directory, it is recursively scanned for orphaned files which will be removed as well. If the directory is an orphan, it will also be removed. @param nonOrphans the table of all n

(Set<String> nonOrphans, File toDir,
                                    Set<File> preservedDirectories)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

executeMethod · 0.95

Calls 15

getIncludePatternsMethod · 0.95
getExcludePatternsMethod · 0.95
setBasedirMethod · 0.95
addExcludesMethod · 0.95
scanMethod · 0.95
getIncludedFilesMethod · 0.95
toFileSetMethod · 0.80
getIncludeEmptyDirsMethod · 0.80
sizeMethod · 0.65

Tested by

no test coverage detected