NAME

Para::Frame::Dir - Represents a directory in the site

DESCRIPTION

Represents a directory in the site.

Inherits from Para::Frame::File.

new

  Para::Frame::Dir->new(\%args)

See Para::Frame::File

Accessors

See Para::Frame::File

dirs

Returns a Para::Frame::List with Para::Frame::Dir objects.

all_files

Returns a Para::Frame::List with Para::Frame::File objects. Not skipping hidden files.

files

Returns a Para::Frame::List with Para::Frame::File objects.

parent

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

parent_sys

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

has_index

True if there is a (readable) index.tt in this dir.

Also handles multiple language versions.

is_dir

has_dir

has_file

get_virtual

  $dir->get_virtual( $filename )

Adds the arg file_may_not_exist and calls /get.

get_virtual_dir

  $dir->get_virtual_dir( $filename )

Adds the arg file_may_not_exist and calls /get and calls /as_dir.

get

  $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.

remove

Removes THIS file

Returns the number of files removed

create

  $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.

as_dir

  $f->as_dir

See also Para::Frame::File/as_dir

Returns: the object

SEE ALSO

Para::Frame