;
        fs.readdir source, (err, files) -&gt;
          <span class="keyword">if</span> err
            <span class="keyword">throw</span> err <span class="keyword">unless</span> err.code <span class="keyword">is</span> <span class="string">'ENOENT'</span>
            watcher.close()
            <span class="keyword">return</span> unwatchDir source, base
          <span class="keyword">for</span> file <span class="keyword">in</span> files <span class="keyword">when</span> <span class="keyword">not</span> 