Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages


home | help
OpenXPKI::FileUtils(3)User Contributed Perl DocumentatioOpenXPKI::FileUtils(3)

       OpenXPKI	- base module for all OpenXPKI core modules.

Exported functions
       Exported	function are function which can	be imported by every other
       object. These function are exported to enforce a	common behaviour of
       all OpenXPKI modules for	debugging and error handling.

       "use OpenXPKI::API qw (debug);"

       You should call the function in the following way:

       "$self->debug ("help: $help");"

       All other stuff is generated fully automatically	by the debug function.

       Example:	$self->read_file($filename);

       Example:	$self->write_file (FILENAME => $filename, CONTENT => $data);

       The method will raise an	exception if the file already exists unless
       the optional argument FORCE is set. In this case	the method will
       overwrite the specified file.

       Example:	$self->write_file (FILENAME => $filename, CONTENT => $data,
       FORCE =>	1);

       Example:	my $file = $self->get_tmpfile ({TMP => "/tmp"});

       This method creates a safe temporary file and returns the filename.

       Example:	my $dir	= $self->get_tmpdir ({TMP => "/tmp"});

       This method creates a safe temporary directory and returns the path to

perl v5.24.1			  2017-07-03		OpenXPKI::FileUtils(3)

Name | Exported functions | Functions

Want to link to this manual page? Use this URL:

home | help