https://github.com/jftuga/file-watcher
Monitors a given file location for create, change, rename and delete file events
https://github.com/jftuga/file-watcher
Last synced: about 1 year ago
JSON representation
Monitors a given file location for create, change, rename and delete file events
- Host: GitHub
- URL: https://github.com/jftuga/file-watcher
- Owner: jftuga
- License: mit
- Created: 2020-07-18T23:51:14.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-20T13:52:16.000Z (almost 6 years ago)
- Last Synced: 2025-01-29T23:29:59.132Z (over 1 year ago)
- Language: C#
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# file-watcher
Monitor a given file location for create, change, rename and delete file events
This program monitors a given file location for create, change, rename and delete file events and
then exits with a specific OS exit code once triggered.
## Configuration
* The default path that is monitored is the `UserProfile` directory, defined by `pathToFolder`
* Paths (or partial paths, file names) can be ignored by placing them in the `ignore_list`
* The default OS exit code is defined by `success_exit_code`
In the source code, change these as needed:
* success_exit_code
* ignore_list
* pathToFolder
## Download
* You can download a Windows binary with the default settings on the [Releases Page](https://github.com/jftuga/file-watcher/releases)
## Compilation
This program can be compiled on **any** Windows 10 system by running this command:
* `C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /nologo /debug:full /out:.\file-watcher.exe /target:exe file-watcher.cs`
## Run
* To quit the program, press `Ctrl-C` or `Ctrl-Break`