mirror of
https://github.com/fscotto/fsnap.git
synced 2026-11-26 03:09:51 +00:00
777f14a9e961ebe0a4a6bdd06d251c9f53cad1cc
- create: write the snapshot to a temporary file and copy it into place only after the walk succeeds; every failure now propagates through rc instead of being reported as success, and the temporary is unlinked on all exit paths - create: skip snapshot files by matching the ".fsnap" suffix against the basename, so entries below a directory whose name contains ".fsnap" are no longer dropped from the snapshot - walk: emit a record for directories as well as leaf files, honour the return value of the operation callback, and free the path and close the directory handle on every exit path - utility: replace the fixed-size realpath buffer with realpath(NULL) and add copy(), which reports read, write and close errors instead of silently truncating the destination - scan, create: set errno to EINVAL on invalid arguments so main can print a meaningful message Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mbj1ZPUEhxqMYKsK7Y7jkt
fsnap
fsnap is a command-line tool written in C that creates snapshots of directory trees and detects filesystem changes over time. It records file metadata such as type, permissions, ownership, size, timestamps, inode information, hard links, and symbolic links. Snapshots can be listed, compared, and verified against the current filesystem state.
Languages
C
63.2%
Shell
31.3%
Makefile
3.8%
Dockerfile
1.7%