fsautoproc
Basic file transformation automation management utility
|
Differential file search comparison function and hook structure. More...
#include <stdbool.h>
Go to the source code of this file.
Data Structures | |
struct | deng_hooks_s |
Hook functions for file system search events. More... | |
Typedefs | |
typedef bool(* | deng_filter_t) (const char *fp) |
Filter function for ignoring files during the search process. | |
Enumerations | |
enum | deng_notif_t { DENG_NOTIF_DIR_DONE , DENG_NOTIF_STAGE_DONE } |
Notification events for the file search process. More... | |
Functions | |
int | dengsearch (const char *sd, deng_filter_t filter, const struct deng_hooks_s *hooks, const struct index_s *old, struct index_s *new) |
Recursively scans directory sd and compares the file system state with a previously saved index. Any new, modified, deleted, or unmodified files are reported to the caller via the provided hooks structure, hooks . The index state new is then updated with the current file system state. | |
Differential file search comparison function and hook structure.
typedef bool(* deng_filter_t) (const char *fp) |
Filter function for ignoring files during the search process.
fp | The file path to filter |
enum deng_notif_t |
int dengsearch | ( | const char * | sd, |
deng_filter_t | filter, | ||
const struct deng_hooks_s * | hooks, | ||
const struct index_s * | old, | ||
struct index_s * | new ) |
Recursively scans directory sd
and compares the file system state with a previously saved index. Any new, modified, deleted, or unmodified files are reported to the caller via the provided hooks structure, hooks
. The index state new
is then updated with the current file system state.
sd | The directory to scan for conditionally ignoring files |
filter | The file filter function |
hooks | The file event hook functions |
old | The previous index state |
new | The current index state |