The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Lab::Moose::DataFolder - Create a data directory with meta data.

DESCRIPTION

A data logging setup consists of one Lab::Moose::DataFolder and one or more Lab::Moose::DataFile objects which live inside the DataFolder.

METHODS

new

 my $folder = Lab::Moose::DataFolder(path => 'foldername');

The actual foldername will consist of the path argument and a numeric suffix. Calling this function repeatedly will create the directories foldername_001, foldername_002, ..., foldername_999, foldername_1000.

After creation, the actual filename is contained in the path attribute:

 my $path = $folder->path();

This method will create the following files in the folder:

<SCRIPT> .pl

A copy of the user script. You can change the name of this script by setting the script_name attribute in the constructor.

META.yml

A YAML file containing meta data. The Lab::Moose::DataFile::Meta object is contained in the meta_file attribute:

 my $meta_file = $folder->meta_file();