fileutils.h
Go to the documentation of this file.
/* SPDX-FileCopyrightText: 2009-2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _GVM_FILEUTILS_H
#define _GVM_FILEUTILS_H
#include <glib.h>
int
gvm_file_exists (const char *name);
int
gvm_file_is_executable (const char *name);
int
gvm_file_is_readable (const char *name);
int
gvm_file_check_is_dir (const char *name);
int
gvm_file_remove_recurse (const gchar *pathname);
gboolean
gvm_file_copy (const gchar *, const gchar *);
gboolean
gvm_file_move (const gchar *, const gchar *);
char *
gvm_file_as_base64 (const char *);
gchar *
gvm_export_file_name (const char *, const char *, const char *, const char *,
const char *, const char *, const char *, const char *);
#endif /* not _GVM_UTIL_FILEUTILS_H */
gvm_file_remove_recurse
int gvm_file_remove_recurse(const gchar *pathname)
Recursively removes files and directories.
Definition fileutils.c:123
gvm_file_as_base64
char * gvm_file_as_base64(const char *)
Get the content of a file in base64 format.
Definition fileutils.c:238
gvm_file_move
gboolean gvm_file_move(const gchar *, const gchar *)
Moves a source file into a destination file.
Definition fileutils.c:206
gvm_file_copy
gboolean gvm_file_copy(const gchar *, const gchar *)
Copies a source file into a destination file.
Definition fileutils.c:171
gvm_file_exists
int gvm_file_exists(const char *name)
Checks whether a file or directory exists.
Definition fileutils.c:71
gvm_file_check_is_dir
int gvm_file_check_is_dir(const char *name)
Checks whether a file is a directory or not.
Definition fileutils.c:45
gvm_file_is_readable
int gvm_file_is_readable(const char *name)
Checks whether a file or directory exists and is readable.
Definition fileutils.c:107
gvm_export_file_name
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
gvm_file_is_executable
int gvm_file_is_executable(const char *name)
Checks whether a file or directory exists and is executable.
Definition fileutils.c:89