Detects new files in a directory and posts them to a web service
Scala
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
conf
src/main/scala/com/collinvandyck/filemonitor
.gitignore
README.md
pom.xml

README.md

Overview

file-monitor polls a directory for files, and then tries to post them to a remote web service.

Configuration

{
  "monitors": [
    {
      "directories": ["/tmp/foo"],
      "url": "http://localhost:8080/v1/events",
      "numConsumers": 32
    }
  ]
}

Notes

Files that cannot be posted are moved to a "broken" directory whose parent directory is the parent directory of the file that could not be posted.