Satisfied Interfaces: ExistingResource, Resource

Represents a directory in a hierarchical file system.

Inherited Attributes
Attributes inherited from: Object
hash, string
Attributes inherited from: ExistingResource
Attributes inherited from: Resource
Methods
childDirectoriesSource Code
shared formal {Directory*} childDirectories(String filter="*")

The subdirectories that directly belong to this directory.

Parameters:
  • filter

    A filter to apply to the file names, expressed as a glob pattern.

childPathsSource Code
shared formal {Path*} childPaths(String filter="*")

The paths of all files and subdirectories that directly belong to this directory.

Parameters:
  • filter

    A filter to apply to the file names, expressed as a glob pattern.

childResourceSource Code
shared formal Resource childResource(Path|String subpath)

Obtain a resource belonging to this directory.

childrenSource Code
shared formal {ExistingResource*} children(String filter="*")

The files and subdirectories that directly belong to this directory.

Parameters:
  • filter

    A filter to apply to the file names, expressed as a glob pattern.

filesSource Code
shared formal {File*} files(String filter="*")

The files that directly belong to this directory.

Parameters:
  • filter

    A filter to apply to the file names, expressed as a glob pattern.

moveSource Code
shared formal Directory move(Nil target)

Move this directory to the given location.

Inherited Methods
Methods inherited from: Object
equals
Methods inherited from: ExistingResource