api / org.gradle.api.file / DirectoryTree

DirectoryTree

interface DirectoryTree

A directory with some associated include and exclude patterns.

This interface does not allow mutation. However, the actual implementation may not be immutable.

Functions

getDir

abstract fun getDir(): File

Returns the base directory of this tree.

getPatterns

abstract fun getPatterns(): PatternSet

Returns the patterns which select the files under the base directory.

Inheritors

ConfigurableFileTree

interface ConfigurableFileTree : FileTree, DirectoryTree, PatternFilterable, Buildable

A FileTree with a single base directory, which can be configured and modified.

You can obtain a ConfigurableFileTree instance by calling org.gradle.api.Project#fileTree(java.util.Map).