Improve snapshot handling and CLI workflows

This commit is contained in:
2026-11-01 16:52:17 +01:00
parent c63530da34
commit 2a1051980b
23 changed files with 944 additions and 495 deletions

View File

@@ -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