NAME
Net::AS2::PSGI::FileHandler - Provides methods to handle files being sent and received
METHODS
- $self->file( $dir, $ext )
-
Return the state file in the given directory, <$dir>.
An optional additional extension may be given,
$ext
. - $file = $self->save( $content, $dir, $ext )
-
Write
$content
to state file with extension$ext
in directory,$dir
.Returns the state file path.
- $file = $self->move( $file, $dir, $ext, $text )
-
Move
$file
to directory,$dir
, adding an optional extension$ext
.Debuging level
$text
is output to the logger, if defined.Returns the path the file was moved to.
- $content = $self->retrieve( $file, $text )
-
Read state file,
$file
, returning its content.Debuging level
$text
is output to the logger, if defined.