App-Hashl
view release on metacpan or search on metacpan
lib/App/Hashl.pm view on Meta::CPAN
Remove the file from the database.
=item $hashl->files()
Returns a list of all file names in the database.
=item $hashl->add_file(I<%data>)
Add a file to the database. Required keys in I<%data> are:
=over
=item B<file> => I<name>
relateve file name to store in the database
=item B<path> => I<path>
Full path to the file
=item B<unignore> => B<0>|B<1>
If true: do not skip ignored files, unignore and re-add them instead
=back
If the file already is in the database, it is only updated if both the file
size and the mtime have changed.
Returns true if the file was actually added to the database, false if it is
ignored or already present (and up-to-date).
=item $hashl->ignored()
Returns a list of all ignored file hashes.
=item $hashl->ignore(I<$file>, I<$path>)
Removes I<$file> from the database and adds I<$path> to the list of ignored
file hashes.
=item $hashl->unignore(I<$path>)
Unignore the hash of I<$path>.
=item $hashl->save(I<$file>)
Save the B<App::Hashl> object with all data to I<$file>. It can later be
retrieved via B<new_from_file>.
=back
=head1 DIAGNOSTICS
None.
=head1 DEPENDENCIES
Digest::SHA(3pm);
=head1 BUGS AND LIMITATIONS
None known.
=head1 AUTHOR
Copyright (C) 2011-2017 by Daniel Friesel E<lt>derf@finalrewind.orgE<gt>
=head1 LICENSE
0. You just DO WHAT THE FUCK YOU WANT TO.
( run in 1.938 second using v1.01-cache-2.11-cpan-39bf76dae61 )