NAME

VCI::Abstract::FileContainer - Anything that can contain a File or Directory.

DESCRIPTION

This is a Moose::Role that represents anything that can hold files. Usually that's a VCI::Abstract::Directory.

METHODS

Accessors

These accessors are all read-only.

contents

An arrayref of VCI::Abstract::Committable objects that we contain. The order is not guaranteed.

contents_history

The VCI::Abstract::History of all the items in this container. The History will contain information about all of the items inside the container, but possibly won't contain information about anything outside of the container.

This does not include the history of the item itself, if the item itself has a history. (That is, if this item is also a VCI::Abstract::Committable, you should use the history method to get information about this specific item.)

contents_history_recursive

The normal "contents_history" only returns the History of items directly contained in the directory.

This accsessor returns an entire VCI::Abstract::History for all items in the Project from this directory down.

So, for example, if dir1 contains dir2, and dir2 contains dir3, this method would return the History of all items contained in dir1, dir2, and dir3.

project

The VCI::Abstract::Project that this FileContainer belongs to.

SEE ALSO

Implementors: VCI::Abstract::Directory and VCI::Abstract::Commit