Directory
Represents a directory at some fixed location on the file system.
Note: This interface is not intended for implementation by build script or plugin authors. An instance of this class can be created using the dir method or using various methods on ProjectLayout such as getProjectDirectory.
Since
4.1
Functions
Link copied to clipboard
Returns a Directory whose location is the given path, resolved relative to this directory.
Link copied to clipboard
Returns a RegularFile whose location is the given path, resolved relative to this directory.
Returns a Provider whose value is a RegularFile whose location is the given path resolved relative to this directory.
Link copied to clipboard
Returns a FileCollection containing the given files, whose locations are the given paths resolved relative to this directory, as defined by files.
Link copied to clipboard
Returns a FileTree that allows the files and directories contained in this directory to be queried.