File Tree
A FileTree
represents a hierarchy of files. It extends FileCollection to add hierarchy query and manipulation methods. You typically use a FileTree
to represent files to copy or the contents of an archive.
You can obtain a FileTree
instance using fileTree, zipTree or tarTree.
The order of the files in a FileTree
is not stable, even on a single computer.
Inheritors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns this.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun matching(@DelegatesTo(value = PatternFilterable::class ) filterConfigClosure: Closure): FileTree
Restricts the contents of this tree to those files matching the given filter.
Link copied to clipboard
Link copied to clipboard
Returns a
FileTree
which contains the union of this tree and the given tree.Link copied to clipboard
Link copied to clipboard
Visits the files and directories in this file tree.