NAME
VCI::Abstract::Directory - A directory in the repository.
DESCRIPTION
This represents a directory, which can contain other directories and files.
VCI::Abstract::Directory implements VCI::Abstract::Committable and VCI::Abstract::FileContainer, so it has all of the methods available there, in addition to any methods listed in this documentation.
METHODS
Accessors
All these accessors are read-only.
name
-
In addition to what's specified in VCI::Abstract::Committable:
If this is the root directory of the project, this will just be an empty string.
path
-
In addition to what's specified in VCI::Abstract::Committable:
Root directories always have a path of
/
.
CLASS METHODS
Constructors
Usually you won't construct an instance of this class directly, but instead, use various methods of other modules that create Directory objects by interacting with the Project.
new
-
Takes all "Accessors" of this class, VCI::Abstract::Committable, and VCI::Abstract::FileContainer as named parameters. The following fields are required: "path" and "project".
If you don't specify "revision", VCI assumes you want an object representing the "latest" or "HEAD" revision of this Directory.