OpenVAS Libraries  8.0.3
openvas_file.h
Go to the documentation of this file.
1 /* openvas-libraries/base
2  * $Id$
3  * Description: File utilities.
4  *
5  * Authors:
6  * Matthew Mundell <matthew.mundell@greenbone.net>
7  * Michael Wiegand <michael.wiegand@greenbone.net
8  * Felix Wolfsteller <felix.wolfsteller@greenbone.net>
9  *
10  * Copyright:
11  * Copyright (C) 2009,2010 Greenbone Networks GmbH
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26  */
27 
28 #ifndef _OPENVAS_FILE_H
29 #define _OPENVAS_FILE_H
30 
31 #include <glib.h>
32 #include <gio/gio.h>
33 
34 int openvas_file_check_is_dir (const char *name);
35 
36 int openvas_file_remove_recurse (const gchar * pathname);
37 
38 gboolean openvas_file_copy (const gchar *, const gchar *);
39 
40 gboolean openvas_file_move (const gchar *, const gchar *);
41 
42 char *openvas_file_as_base64 (const char *);
43 
44 gchar *openvas_export_file_name (const char*, const char*, const char*,
45  const char*, const char*, const char*,
46  const char*, const char*);
47 
48 #endif /* not _OPENVAS_FILE_H */
int openvas_file_remove_recurse(const gchar *pathname)
Recursively removes files and directories.
Definition: openvas_file.c:86
int openvas_file_check_is_dir(const char *name)
Checks whether a file is a directory or not.
Definition: openvas_file.c:60
gboolean openvas_file_move(const gchar *, const gchar *)
Moves a source file into a destination file.
Definition: openvas_file.c:173
const char * name
Definition: nasl_init.c:511
gchar * openvas_export_file_name(const char *, const char *, const char *, const char *, const char *, const char *, const char *, const char *)
Generates a file name for exporting.
Definition: openvas_file.c:239
gboolean openvas_file_copy(const gchar *, const gchar *)
Copies a source file into a destination file.
Definition: openvas_file.c:135
char * openvas_file_as_base64(const char *)
Get the content of a file in base64 format.
Definition: openvas_file.c:208