Jonathan Rockway > Chroniton-0.03 > Chroniton::File

Download:
Chroniton-0.03.tar.gz

Dependencies

Annotate this POD (1)

CPAN RT

New  3
Open  0
View Bugs
Report a bug
Source  

NAME ^

Chroniton::File - represents a file in a the backup set

SYNOPSIS ^

     my $file = Chroniton::File->new("/path/to/file");

METHODS ^

new(original)

Creates an instance, gleaning file metadata from original.

metadata

Returns the metadata associated with this file as a hashref.

Valid metadata is: permissions (as a string, like -rwxr-xr-x), owner user name, owner group name, mtime, atime, ctime (all in seconds past the epoch), and size (in bytes).

apply_metadata(file, log)

Applies the metadata contained in this object to an actual file on the filesystem. If log is specified, logs messages to a Chroniton::Messages object.