NAME

App::backimap::Storage - manages backimap storage

VERSION

version 0.00_10

ATTRIBUTES

dir

Sets pathname to the storage (defaults to ~/.backimap).

init

Tells that storage must be initialized.

clean

Tells that storage must be cleaned if dirty.

author

Name of the committing author in local storage.

The name is configured on the storage initialization.

email

Author email address that will be used along with the author name as the committing author.

The email is configured on the storage initialization.

METHODS

find( $file, ... )

Returns a list of files that are found in storage.

list( $dir )

Returns a list of files in a directory from storage.

get( $file )

Retrieves file from storage.

put( $file => $content, ... )

Adds files to storage with a text describing the change.

delete( $file, ... )

Removes files from storage.

move

Renames or moves files and directories from one place to another in storage.

commit($change, [$file] ...)

Commits pending storage actions with a description of change. If a list of files is provided, only those will be committed. Otherwise all pending actions will be performed.

reset

Rolls back any storage actions that were performed but not committed. Returns storage back to last committed status.

Required methods in status for MooseX::Storage that don't perform any action since the storage backend does not support serialization.

AUTHOR

Alex Muntada <alexm@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Alex Muntada.

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