This is a simple Golang program that watches a directory for changes and stores the information in json file.
- Directory that is being watched is
./tmp
- Output file is
./fileData.json
- Run
go run main.go worker.go
to start the program
- Watches the directory for changes
- Stores the file name/path, size as
{ "filePath": "size", ... }
- Checks if the file is created, modified or deleted