Para::Frame::Dir - Represents a directory in the site
Represents a directory in the site.
Inherits from Para::Frame::File.
Para::Frame::Dir->new(\%args)
Returns a Para::Frame::List with Para::Frame::Dir objects.
Returns a Para::Frame::List with Para::Frame::File objects. Not skipping hidden files.
Returns a Para::Frame::List with Para::Frame::File objects.
We get the parent Para::Frame::Dir object.
Returns undef
if we are trying to get the parent of the
Para::Frame::Site/home.
If not a site file, returns undef if we are trying to get the parent of the system root.
Returns:
a L<Para::Frame::Dir> object
We get the parent Para::Frame::Dir object.
Returns undef if we are trying to get the parent of the system root.
Returns:
a L<Para::Frame::Dir> object
True if there is a (readable) index.tt
in this dir.
Also handles multiple language versions.
$dir->get_virtual( $filename )
Adds the arg file_may_not_exist
and calls /get.
$dir->get_virtual_dir( $filename )
Adds the arg file_may_not_exist
and calls /get and calls /as_dir.
$dir->get( $filename, \%args )
Possible args are
file_may_not_exist
$filename can contain '/' for specifying a subdir. An '/' will be added to the beginning if missing.
Removes THIS file
Returns the number of files removed
$dir->create() $dir->create(\%args )
Called from the dir object.
Creates the directory, including parent directories.
All created dirs is chmod and chgrp to ritframe standard.
Passes %args
to /create and /chmod.
$f->as_dir
See also Para::Frame::File/as_dir
Returns: the object