How hadjsaidsamy2209-glitch/syncmate works
SyncMate synchronizes a Windows machine’s local folder bidirectionally with an SMB share. On startup, the launcher loads or collects configuration, starts a filesystem watcher, and runs synchronization every 60 seconds. The sync engine compares local and remote file state, resolves conflicts by modification time, transfers files atomically with SHA-256 verification, and propagates deletions through a shared JSON manifest. Local scans track file changes in SQLite. The README documents VPN access and silent startup; these are represented as external environment and startup integration. Edges reflect the excerpts or README; unsampled sync details are not expanded beyond documented behavior.
Main entry points: sync.py Sync engine · lanceur.py Launcher · watcher.py Filesystem watcher · main.py File scanner
Components 13
Runtime control
- Launcher
lanceur.py - Persistent config
config.py - Filesystem watcher
watcher.py
Local state
- File scanner
main.py - SQLite state
database.py
Synchronization
- Sync engine
sync.py - Deletion manifest
sync.py - Transfer notifications
sync.py
External storage
- Local folder
- SMB share
- Windows startup
- VPN or LAN
Other components
- User
Connections 13
- User → Launcher: configures
lanceur.py - Launcher → Persistent config: loads or saves
lanceur.py - Launcher → Filesystem watcher: starts
lanceur.py - Launcher → Sync engine: runs periodically
lanceur.py - Launcher → Windows startup: registers startup
lanceur.py - Filesystem watcher → File scanner: triggers scans
watcher.py - File scanner → SQLite state: records file state
main.py - Sync engine → SQLite state: reads local state
sync.py - Sync engine → Local folder: scans and transfers
README.md - Sync engine → SMB share: scans and transfers
README.md - Sync engine → Deletion manifest: reads and updates
sync.py - Sync engine → Transfer notifications: reports transfers
sync.py - VPN or LAN → SMB share: provides remote access
README.md