n-12">&#182;</a>
              </div>
              <p>Watch a directory of files for new additions.
</p>

            </div>
            
            <div class="content"><div class='highlight'><pre><span class="function"><span class="title">watchDir</span></span> = (source, base) -&gt;
  readdirTimeout = <span class="literal">null</span>
  <span class="keyword">try</span>
    watcher = fs.watch source, -&gt;
      clearTimeout readdirTimeout
      readdirTimeout = wait <span class="number">25</span>, -&gt