Lab::Moose::DataFolder - Create a data directory with meta data.
A data logging setup consists of one Lab::Moose::DataFolder and one or more Lab::Moose::DataFile objects which live inside the DataFolder.
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
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_nameattribute in the constructor.
A YAML file containing meta data. The Lab::Moose::DataFile::Meta object is contained in the
my $meta_file = $folder->meta_file();