]> ruderich.org/simon Gitweb - safcm/safcm.git/commit
remote: support syncing Files without all path components
authorSimon Ruderich <simon@ruderich.org>
Thu, 23 Oct 2025 06:02:47 +0000 (08:02 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 25 Oct 2025 07:28:31 +0000 (09:28 +0200)
commit4ac4cd8778d21f9b35e50dd6b59a65b6ee4b07cc
tree4bedac7bfa81830ca04fd3cddde0156f315d5f16
parente8e51f92cad93709d67139967cb8a30567f1aac2
remote: support syncing Files without all path components

safcm normally creates Files for all path components (i.e. syncing
"/foo/bar" creates Files for "/", "/foo" and "/foo/bar"). However, other
programs using safcm as library might want to simply sync "/foo/bar"
without setting (and possibly changing) the other path components.
Support this behavior.
remote/sync/files_test.go
remote/sync/triggers.go