NAME

File::Sticker::Derive::Common - derive values from existing meta-data

VERSION

version 4.9

SYNOPSIS

use File::Sticker::Derive::Common;

my $deriver = File::Sticker::Derive::Common->new(%args);

my $derived_meta = $deriver->derive(filename=>$filename,meta=>$meta);

DESCRIPTION

This will derive values from existing meta-data. This is the Common plugin, which derives things common to all files, such as paths, size, and date.

DEBUGGING

whoami

Used for debugging info

METHODS

order

The order of this deriver, ranging from 0 to 99. This makes sure that the deriver is applied in order; useful because a later deriver may depend on data created by an earlier deriver.

derive

Derive common values from the existing meta-data. This UPDATES the passed-in meta hash, taking into account whether given fields are allowed to be overwritten with the derived values, or left alone. If the original field has an empty value, then the derived value will be written. If the field is a readonly value, then the derived value will be written.

$deriver->derive(filename=>$filename, meta=>$meta, overwrite=>\%overwrite);

BUGS

Please report any bugs or feature requests to the author.