NAME

LibreCat::FileStore::Container::Simple - A default implementation of a file storage container

SYNOPSIS

    use LibreCat::FileStore::Simple;

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

    my $container = $filestore->get('1234');

    my @list_files = $container->list;

    if ($container->exists($filename)) {
        ....
    }

    $container->add($filename, IO::File->new('/path/to/file'));

    my $file = $container->get($filename);

    $container->delete($filename);

    # write all changes to disk (network , database , ...)
    $container->commit;

SEE ALSO

LibreCat::FileStore::Container