GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  OPENXPKI::FILEUTILS (3)

.ds Aq ’

Name

OpenXPKI - base module for all OpenXPKI core modules.

CONTENTS

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);

    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.

Functions

    read_file

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

    write_file

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);

    get_safe_tmpfile

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

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

    get_safe_tmpdir

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

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

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 OPENXPKI::FILEUTILS (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.