How ssajaia/dios works
dios is a small command-line directory synchronizer. A user invokes sync with source and destination paths, optionally in dry-run mode; the CLI parses arguments and starts synchronization. The sync logic validates paths, recursively reconciles entries, reports additions/changes/removals, compares file contents, and copies or removes entries unless dry-run is enabled. The README is empty, so this map is based on the sampled source; filesystem interactions are represented as one external resource.
Main entry points: sync.go Entry reconciliation · main.go Command dispatch
Components 11
Other components
- CLI user
- Program entry
main.go - Command dispatch
main.go - Sync arguments
main.go - Sync coordinator
sync.go - Path validation
sync.go - Entry reconciliation
sync.go - Extra removal
sync.go - File comparison
sync.go - File copying
sync.go - Local filesystem
Connections 16
- CLI user → Program entry: invokes
main.go - Program entry → Command dispatch: calls
main.go - Command dispatch → Sync arguments: dispatches
main.go - Command dispatch → Sync coordinator: starts sync
main.go - Sync coordinator → Path validation: validates paths
sync.go - Sync coordinator → Entry reconciliation: reconciles entries
sync.go - Sync coordinator → Extra removal: removes extras
sync.go - Path validation → Local filesystem: inspects paths
sync.go - Entry reconciliation → Entry reconciliation: recurses into
sync.go - Entry reconciliation → Extra removal: removes extras
sync.go - Entry reconciliation → File comparison: compares files
sync.go - Entry reconciliation → File copying: copies files
sync.go - Entry reconciliation → Local filesystem: reads and mutates
sync.go - Extra removal → Local filesystem: reads and removes
sync.go - File comparison → Local filesystem: reads files
sync.go - File copying → Local filesystem: copies data
sync.go