{"id":15823907,"url":"https://github.com/stefh/filewatcher","last_synced_at":"2025-05-08T20:28:35.250Z","repository":{"id":144112170,"uuid":"461164246","full_name":"StefH/FileWatcher","owner":"StefH","description":"FileWatcher","archived":false,"fork":false,"pushed_at":"2022-02-19T16:15:37.000Z","size":23,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-06T21:36:34.831Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StefH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-02-19T10:57:28.000Z","updated_at":"2024-04-20T20:22:27.000Z","dependencies_parsed_at":"2023-09-24T07:17:22.124Z","dependency_job_id":null,"html_url":"https://github.com/StefH/FileWatcher","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.25,"last_synced_commit":"00bc8dab224cdd29c872f64f32facdd8948b7f2b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2FFileWatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2FFileWatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2FFileWatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefH%2FFileWatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StefH","download_url":"https://codeload.github.com/StefH/FileWatcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253143865,"owners_count":21860958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T08:24:05.429Z","updated_at":"2025-05-08T20:28:35.225Z","avatar_url":"https://github.com/StefH.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FileWatcher\nThis project is based on:\n- https://github.com/Microsoft/vscode-filewatcher-windows\n- https://github.com/d2phap/FileWatcherEx\n\n## NuGet\n[![NuGet Badge](https://buildstats.info/nuget/Stef.FileWatcher)](https://www.nuget.org/packages/Stef.FileWatcher)\n\n## Features\n- Standardize the events of C# `FileSystemWatcher`.\n- No false change notifications when a file system item is created, deleted, changed or renamed.\n- Supports .NET 4.5, .NETStandard (1.3, 2.0 and 2.1), .NET Core 3.1, .NET 5 and .NET 6\n\n## Usage\nSee Demo project for full details.\n\n``` c#\nusing Stef.FileWatcher;\n\nvar path = @\"C:\\temp\\fs\";\n\nConsole.WriteLine(\"Watching {0}\", path);\n\nvar fileWatcher = new FileWatcher(path)\n{\n    IncludeSubdirectories = true\n};\nfileWatcher.OnCreated += OnX;\nfileWatcher.OnDeleted += OnX;\nfileWatcher.OnChanged += OnX;\nfileWatcher.OnRenamed += OnX;\n\n// start watching\nfileWatcher.Start();\n\nConsole.WriteLine(\"Press a key to exit\");\nConsole.ReadKey();\n\nvoid OnX(object sender, FileChangedEvent e)\n{\n    Console.WriteLine($\"{e.ChangeType} | {e.FullPath}\");\n}\n```\n\n## License\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefh%2Ffilewatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefh%2Ffilewatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefh%2Ffilewatcher/lists"}