 # Watch = require('gaze').Gaze
 Watch = require('sane')
 minimatch = require 'minimatch'
-
 
 eventMap =
     add: 'added'


    watched: (cb)->
        cb = nb cb
        # @gaze.watched (err, matched = {})=>
        #     return cb err if err
        #     filelist = {}
        #     for _, files of matched
        #         files
        #         .filter(@toWatch())
        #         .forEach (filepath)=>
        #             filelist[filepath] = yes
        #     cb null, filelist

        filelist = {}
        @pool.forEach (pond)=>
            files = Object.keys(pond.dirRegistery).forEach (dirname)=>

        unless @pattern? and @pattern instanceof Array
            throw new Error "No sane pattern; have #{@pattern}, need Array."

        @gazeAt @pool = (GetPool(root) for root in @root)

    gazeAt: (pool)->
