{"id":19243297,"url":"https://github.com/alexrasch/filemonitorpinvoke","last_synced_at":"2026-06-21T14:31:53.653Z","repository":{"id":182792898,"uuid":"669107467","full_name":"AlexRasch/FileMonitorPInvoke","owner":"AlexRasch","description":"FileMonitorPInvoke is a open-source C# application that makes use of the Windows API functions, like FindFirstChangeNotification, FindNextChangeNotification, and ReadDirectoryChangesW, to easily track file changes in a specified directory. ","archived":false,"fork":false,"pushed_at":"2023-07-21T11:53:23.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T14:47:04.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/AlexRasch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-21T11:04:28.000Z","updated_at":"2023-07-21T11:13:19.000Z","dependencies_parsed_at":"2023-07-21T12:48:35.546Z","dependency_job_id":null,"html_url":"https://github.com/AlexRasch/FileMonitorPInvoke","commit_stats":null,"previous_names":["alexrasch/filemonitor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlexRasch/FileMonitorPInvoke","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexRasch%2FFileMonitorPInvoke","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexRasch%2FFileMonitorPInvoke/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexRasch%2FFileMonitorPInvoke/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexRasch%2FFileMonitorPInvoke/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexRasch","download_url":"https://codeload.github.com/AlexRasch/FileMonitorPInvoke/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexRasch%2FFileMonitorPInvoke/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34613083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-09T17:17:25.892Z","updated_at":"2026-06-21T14:31:53.632Z","avatar_url":"https://github.com/AlexRasch.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FileMonitor\nFileMonitorPInvoke is a open-source C# application that makes use of the Windows API functions, like FindFirstChangeNotification, FindNextChangeNotification, and ReadDirectoryChangesW, to track file changes in a specified directory. It allows you to monitor file additions, deletions, and modifications. The project is licensed under the permissive MIT License, allowing everyone to freely use, modify, and include the code in their projects, as long as they credit the original author. \n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/AlexRasch/FileMonitorPInvoke/assets/46262688/3062d0c5-5c95-4121-a022-30fc050dd0e7\" width=\"550\"\u003e\n\u003c/p\u003e\n\n**Disclaimer:** \nWhile FileMonitorPInvoke provides a way to track file changes using Windows API functions, you may also consider using the built-in [FileSystemWatcher](https://docs.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher) class in C#. FileSystemWatcher offers a more feature-rich and managed solution with simplified event-driven file monitoring, which may better suit your needs. ¯\\_(ツ)_/¯\n\n## Inspiration\nThe application is loosely based on the example from Microsoft's documentation [Obtaining Directory Change Notifications](https://learn.microsoft.com/en-us/windows/win32/fileio/obtaining-directory-change-notifications), providing a reliable and simplified solution for file monitoring.\n\n## Special Thanks\nA heartfelt special thanks to [Mario](https://github.com/mariob) for his valuable inputs and generous support.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexrasch%2Ffilemonitorpinvoke","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexrasch%2Ffilemonitorpinvoke","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexrasch%2Ffilemonitorpinvoke/lists"}