Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/book/file-contentstore

A store for file content built with hard links
https://github.com/book/file-contentstore

Last synced: about 1 month ago
JSON representation

A store for file content built with hard links

Awesome Lists containing this project

README

        

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) .

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.