NAME

Statocles::File - A wrapper for a file on the filesystem

SYNOPSIS

    my $store = Statocles::Store->new( path => 'my/store' );
    my $file = Statocles::File->new(
        store => $store,
        path => 'file.txt', # my/store/file.txt
    );

DESCRIPTION

This class encapsulates the information for a file on the filesystem and provides methods to read the file.

ATTRIBUTES

store

The store that contains this file

path

The path to this file, relative to the store

fh

The file handle containing the contents of the page.

SEE ALSO

Statocles::Store, Statocles::Document