Brian Duggan > Data-Downloader > Data::Downloader::Linktree

Download:
Data-Downloader-0.9907.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Data::Downloader::Linktree -- a tree of symlinks

DESCRIPTION ^

A linktree is a tree of symlinks to files in the data store.

A linktree has a condition (a serialized SQL::Abstract clause): the metadata of a file must satisfy this condition in order for the file to be in this linktree. It also has a template and a root. The path of a symlink in a linktree is determined by filling the metadata for the file into the template, and prepending the root.

EXAMPLE ^

 my $linktree = Data::Downloader::Linktree->new(
    repository => $mine,
    condition => q[ esdt => "OMTO3" ],
    root => "/download/files/omi",
    path_template => "<archiveset>/<esdt>/<starttime:%Y/%m/%d>", );

METHODS ^

rebuild

Rebuild all the links in this tree.

Removes all the files, then iterate over all the files which meet the condition for this linktree, and adds symlinks, using the metadata for the file.

SEE ALSO ^

Rose::DB::Object

"SCHEMA" in Data::Downloader

syntax highlighting: