Watch and retrieve an aggregated, alphabetized list of files from the folders you specify
GET http://localhost:7807/files
Response body:
{
"items" [{
"name": "afile.txt"
},{
"name": "filename.txt"
}]
}
System requirements: Docker
git clone [email protected]:aitkenster/file-watcher.git
- Run
make build-and-run
( this will create afile-watcher/example
directory with watched sub directories. make stop
to stop
To use your own folders:
Change the WATCHED_FOLDERS
env var in the build-and-run
command in the Makefile to use your own folders as comma seperated values. Paths can be relative (from the file-watcher folder), or absolute. One watcher node will be generated per folder.
Run make test
to run all tests
- When a watcher node restarts after failure, update all the files watched by that node in the aggregated list
- Check for changes within nested folders
- Integration and API tests
- Pagination in the API