NAME

Sweet::Home - Dir, File, HomeDir, and other sweet classes

CPAN version Build Status

SYNOPSIS

use Sweet::Dir;

my $dir = Sweet::Dir->new(path => '/path/to/mydir');

$dir->is_a_directory or $dir->create;

my $dir2 = $dir->sub_dir('foo');

$dir2->create;

say $dir2; # /path/to/mydir/foo

my $file = $dir2->file('bar');

say $file; # /path/to/mydir/foo/bar

DESCRIPTION

Nothing is better than feel at home. Where is the home? The home is where I can feel comfortable (cit. Jovanotti).

This package provides a set of features to make you feel comfortable when working with files and folders.

It is just syntactic sugar on top of packages like File::Basename, File::Copy, File::HomeDir, File::Path, File::Remove, File::Spec, etc.

CODE COVERAGE

Code coverage metrics report available here

CLASSES

Sweet::DatabaseConnection
Sweet::Dir
Sweet::File
Sweet::File::DSV
Sweet::File::CSV
Sweet::File::Semaphore
Sweet::HomeDir
Sweet::Now
Sweet::Schema
Sweet::SFTP
Class diagram

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by G. Casati.

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