# Pet Project

Write a Node.js app that tracks activity in a given folder.

# Requirements

  1. Monitor the state of a directory (polling with fs.readdir on an interval is a reasonable approach—see modules and files).
  2. When a file is added, print Added new file <FILE_NAME>.
  3. When a file is removed, print <FILE_NAME> removed.
  4. Take an initial snapshot of the directory on start, and do not report deletions when a read fails.

# Submission

Create a PR into the jstask2 branch of your own js repository.

See more details here (opens new window)