diff --git a/src/include/utils/os.h b/src/include/utils/os.h
index 26f7e59e6016137495fb0a5b2a94a630ddf7738e..2e6c54776ede89ba35d2f70aacda889df89b7d75 100644 (file)
--- a/src/include/utils/os.h
+++ b/src/include/utils/os.h
/*
* sysdb_mkdir_all:
* Recursively create the directory 'pathname' (similar to 'mkdir -p' on the
- * command line) and ensure that its mode is 'mode'. Any newly created
- * directories will have permissions according the the specified mode
- * (modified by the process's umask in the usual way). The function will
- * always ensure the specified permissions for the specified directory, even
- * if it exists already.
+ * command line) using file permissions as specified by 'mode'.
*
* Returns:
* - 0 on success
int
sdb_mkdir_all(const char *pathname, mode_t mode);
+/*
+ * sdb_remove_all:
+ * Recursively deletes the specified path from the filesystem.
+ *
+ * Returns:
+ * - 0 on success
+ * - a negative value else
+ */
+int
+sdb_remove_all(const char *pathname);
+
#ifdef __cplusplus
} /* extern "C" */
#endif