Skip to content

book/File-ContentStore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

File::ContentStore - A store for file content built with hard links

SYNOPSIS

    use File:::ContentStore;

    # the 'path' argument is expected to exist
    my $store = File:::ContentStore->new( path => "$ENV{HOME}/.photo_content" );
    $store->link_dir( @collection_of_photo_directories );

DESCRIPTION

This module manages a "content store" as a collection of hard links to a set
of files. The files in the content store are named after the digest of the
content in the file.

When linking a new file to the content store, a hard link is created to
the file, named after the digest of the content. When a file which content
is already in the store is linked in, the file is hard linked to the
content file in the store.

AUTHOR

Philippe Bruhat (BooK) <book@cpan.org>.

COPYRIGHT

Copyright 2018 Philippe Bruhat (BooK), all rights reserved.

LICENSE

This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.

About

A store for file content built with hard links

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages