mirror of
https://github.com/fscotto/fsnap.git
synced 2026-11-26 03:09:51 +00:00
Improve snapshot handling and CLI workflows
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
#ifndef WALK_H
|
||||
#define WALK_H
|
||||
|
||||
#include "status.h"
|
||||
|
||||
typedef int (*WalkOp)(const char *, void *);
|
||||
|
||||
/* Recursively walk a directory, calling op for each entry.
|
||||
Returns 0 on success, -1 on failure. Silently skips directories
|
||||
where access is denied. */
|
||||
Returns 0 on success, FSNAP_WARNINGS when a callback warns or a child
|
||||
directory is skipped with EACCES, -1 on failure. An unreadable root fails.
|
||||
A callback returns 0, FSNAP_WARNINGS, or -1. */
|
||||
int walk(const char *directory, WalkOp op, void *context);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user