NAME
Armadito::Agent::Tools::File - Basic I/O functions used in Armadito Agent.
DESCRIPTION
This module provides some high level I/O functions for easy use.
FUNCTIONS
readFile(%params)
Read file and return its content in a scalar.
- filepath
-
Path of the file to be read.
writeFile(%params)
Write a scalar to a file in binary mode.
- content
-
Content to write (scalar).
- filepath
-
Path of the file where content will be written to.
- mode
-
File opening mode.
canRun($binary)
Returns true if given binary can be executed.
rmFile(%params)
Remove a file if it exists.
- filepath
-
Path of the file to remove.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 118:
=over without closing =back