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
$contentto state file with extension$extin directory,$dir.Returns the state file path.
- $file = $self->move( $file, $dir, $ext, $text )
-
Move
$fileto directory,$dir, adding an optional extension$ext.Debuging level
$textis 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
$textis output to the logger, if defined.