NAME

LibreCat::FileStore::File - Abstract definition of a stored file

SYNOPSIS

    use LibreCat::FileStore::Simple;

    my $filestore => LibreCat::FileStore::Simple->new(%options);

    my $file = $filestore->get('1234')->get('myfile.txt');

    my $filename     = $file->key;
    my $content_type = $file->content_type;
    my $size         = $file->size;
    my $created      = $file->created;
    my $modified     = $file->modified;

    my $fh = $file->fh;

METHODS

key()

Return the filename.

content_type()

Return the content type of the file.

size

Return the byte size of the file.

created

Return the UNIX creation date of the file.

modified

Return the UNIX modification date of the file.

data

Return a IO::Handle for the file.

SEE ALSO

LibreCat::FileStore , LibreCat::FileStore::Container