OpenVAS Libraries  7.0.9
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 modify
14  * it under the terms of the GNU General Public License version 2,
15  * or, at your option, any later version as published by the Free
16  * Software Foundation
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 #endif /* not _OPENVAS_FILE_H */
int openvas_file_remove_recurse(const gchar *pathname)
Recursively removes files and directories.
Definition: openvas_file.c:81
int openvas_file_check_is_dir(const char *name)
Checks whether a file is a directory or not.
Definition: openvas_file.c:55
gboolean openvas_file_move(const gchar *, const gchar *)
Moves a source file into a destination file.
Definition: openvas_file.c:168
const char * name
Definition: nasl_init.c:501
gboolean openvas_file_copy(const gchar *, const gchar *)
Copies a source file into a destination file.
Definition: openvas_file.c:130