Greenbone Vulnerability Management Libraries 22.12.2
fileutils.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2009-2023 Greenbone AG
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
13#ifndef _GVM_FILEUTILS_H
14#define _GVM_FILEUTILS_H
15
16#include <glib.h>
17
18int
19gvm_file_exists (const char *name);
20
21int
22gvm_file_is_executable (const char *name);
23
24int
25gvm_file_is_readable (const char *name);
26
27int
28gvm_file_check_is_dir (const char *name);
29
30int
31gvm_file_remove_recurse (const gchar *pathname);
32
33gboolean
34gvm_file_copy (const gchar *, const gchar *);
35
36gboolean
37gvm_file_move (const gchar *, const gchar *);
38
39char *
40gvm_file_as_base64 (const char *);
41
42gchar *
43gvm_export_file_name (const char *, const char *, const char *, const char *,
44 const char *, const char *, const char *, const char *);
45
46#endif /* not _GVM_FILEUTILS_H */
int gvm_file_remove_recurse(const gchar *pathname)
Recursively removes files and directories.
Definition fileutils.c:123
char * gvm_file_as_base64(const char *)
Get the content of a file in base64 format.
Definition fileutils.c:238
gboolean gvm_file_move(const gchar *, const gchar *)
Moves a source file into a destination file.
Definition fileutils.c:206
gboolean gvm_file_copy(const gchar *, const gchar *)
Copies a source file into a destination file.
Definition fileutils.c:171
int gvm_file_exists(const char *name)
Checks whether a file or directory exists.
Definition fileutils.c:71
int gvm_file_check_is_dir(const char *name)
Checks whether a file is a directory or not.
Definition fileutils.c:45
int gvm_file_is_readable(const char *name)
Checks whether a file or directory exists and is readable.
Definition fileutils.c:107
gchar * gvm_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 fileutils.c:269
int gvm_file_is_executable(const char *name)
Checks whether a file or directory exists and is executable.
Definition fileutils.c:89