Podius::Property::FileSelection - component property for file name in the given directory
$property = new Podius::Property::FileSelection;
Supposed to be used in the Podius::Component manpage and the Podius::Property manpage module trees only.
This module implements component property of multiple choices with single selection.
the Exception manpage, the File::Operations manpage, the Podius::Property::Scalar manpage.
OPtional keys of argument hashref are: dirname - working directory (scalar, scalarref, or coderef with component as parameter), subdirs - mode (0 is default - files only, 1 - include subdirs, 2 - subdirs only), regexp - regular expression on file name, root - additional root (empty by default) that is usually hidden, but taken in the consideration when real dirs/files are accessed.
It is possible that this method returns unexisting directory, no check is performed. If empty, the return value is replaced with ``/tmp''.
Accessor: returns the directory string.
Modifier: sets a new directory (like in constructor).
Modifier: directory (scalar, scalarref, or coderef).
This is equivalent to concutenation of file parts access_dirname and access.
Accessor: returns the root directory string.
Modifier: sets a new root directory (like in constructor).
Modifier: root directory (string).
Like access_dirname, but with root prepended.
Returns a list of all file names (containing no ``/'') in the working directory.