unlink_recursive.h
Go to the documentation of this file.
/*
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef UNLINK_RECURSIVE_H
#define UNLINK_RECURSIVE_H
#include "compat-at.h"
#include <fcntl.h>
int unlinkat_recursive (int fd, const char *path);
int unlink_recursive (const char *path);
int unlink_dir_contents (const char *path);
#endif
compat-at.h
at syscall compatibility layer.
unlink_dir_contents
int unlink_dir_contents(const char *path)
Unlink only the contents of the directory recursively.
unlink_recursive
int unlink_recursive(const char *path)
Delete a path recursively.
unlinkat_recursive
int unlinkat_recursive(int fd, const char *path)
Delete a path recursively.