|
OpenVAS Libraries
6.0+beta5
|
File utilities. More...
Functions | |
| int | openvas_file_check_is_dir (const char *name) |
| Checks whether a file is a directory or not. More... | |
| int | openvas_file_remove_recurse (const gchar *pathname) |
| Recursively removes files and directories. More... | |
| gchar * | openvas_file_read_b64_encode (const gchar *filename) |
| Reads in contents of file, and returns it, base64-encoded. More... | |
| gboolean | openvas_file_copy (const gchar *source_file, const gchar *dest_file) |
| Copies a source file into a destination file. More... | |
| gboolean | openvas_file_move (const gchar *source_file, const gchar *dest_file) |
| Moves a source file into a destination file. More... | |
File utilities.
| int openvas_file_check_is_dir | ( | const char * | name) |
Checks whether a file is a directory or not.
This is a replacement for the g_file_test functionality which is reported to be unreliable under certain circumstances, for example if this application and glib are compiled with a different libc.
Symbolic links are not followed.
| [in] | name | Name of file or directory. |
| gboolean openvas_file_copy | ( | const gchar * | source_file, |
| const gchar * | dest_file | ||
| ) |
Copies a source file into a destination file.
If the destination file does exist already, it will be overwritten.
| [in] | source_file | Source file name. |
| [in] | dest_file | Destination file name. |
| gboolean openvas_file_move | ( | const gchar * | source_file, |
| const gchar * | dest_file | ||
| ) |
Moves a source file into a destination file.
If the destination file does exist already, it will be overwritten.
| [in] | source_file | Source file name. |
| [in] | dest_file | Destination file name. |
| gchar* openvas_file_read_b64_encode | ( | const gchar * | filename) |
Reads in contents of file, and returns it, base64-encoded.
This function does neither log any occuring error, nor does it make it available, it will just return NULL.
| [in] | filename | File to read in. |
| int openvas_file_remove_recurse | ( | const gchar * | pathname) |
Recursively removes files and directories.
This function will recursively call itself to delete a path and any contents of this path.
| [in] | pathname | The name of the file to be deleted from the filesystem. |
1.8.4