Skip to content

FossilHunt/FileWatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HOW TO RUN

  1. Create a new .NET console app (.NET 6 and above will work).
  2. Replace Program.cs with this code.
  3. Run it. It will watch your Documents/WatchedFolder by default.
  4. Try adding/renaming/deleting files — you’ll now see a single clean log per change.

Safety note

  • Only reads file events; does not modify or transmit data.

Learning goals

  • Using FileSystemWatcher safely.
  • Handling event spam via debouncing.
  • Simple log rotation and thread safety.
  • Graceful shutdown.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages