How techieguy12/filewatcher works
Project type and purpose
• This is an open-source, cross-platform command-line File Watcher tool written in C#/.NET.
• Its purpose is to monitor file system changes (create, modify, delete) on local or external drives, then perform user-defined reactions: send HTTP notifications, execute file operations (copy/move/delete), or run arbitrary commands.
File structure
• Top-level solution:
– FileWatcher.sln coordinates two project types:
• FileWatcher (the core .NET tool)
• FwInstaller (a WiX installer for Windows)
– LICENSE, README.md, templates/ (config file template)
• src/ (core code) organized into feature areas:
– Configuration (XML parsing abstractions, triggers, actions, filters, notifications)
– FileSystem (wrappers around directory and file concepts)
– IO (path, name, pattern matching, file/folder operations)
– Log (logging engine with rollover)
– Net (HTTP Request/Response for notification endpoint)
– Program.cs & appsettings.json (entry point and runtime settings)
• FwInstaller/ (WiX project) uses config.xml.sample and Package.wxs for building an .msi/.exe
README for additional insights
• Confirms supported platforms (Windows/MacOS/Linux), zero-install portability, low resource use
• Highlights configuration-driven architecture, plug-in points for actions, notifications, exclusions
Detail without over-splitting
• Call out the installer project as a separate packaging flow