Data::Downloader::Linktree -- a tree of symlinks
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.
my $linktree = Data::Downloader::Linktree->new( repository => $mine, condition => q[ esdt => "OMTO3" ], root => "/download/files/omi", path_template => "<archiveset>/<esdt>/<starttime:%Y/%m/%d>", );
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.
Rose::DB::Object
"SCHEMA" in Data::Downloader
To install Data::Downloader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Downloader
CPAN shell
perl -MCPAN -e shell install Data::Downloader
For more information on module installation, please visit the detailed CPAN module installation guide.