           object[key].__file = filepath
 
       else if stat.isDirectory()
-        filenames = fs.readdirSync(filepath)
+        filenames = fsModule.readdirSync(filepath)
         filenames.forEach (filename) ->
           hinoki.baseRequireSource pathModule.join(filepath, filename), object
 

      path,
      cacheTarget
    ).promise

  # monomorphic
  hinoki.PromiseAndCacheTarget = (promise, cacheTarget) ->

  # of all `*.js` and `*.coffee` files in `filepath`.
  # if `filepath` is a directory recurse into every file and subdirectory.

  if hinoki.isNodejs
    # TODO better name
    hinoki.requireSource = (filepath) ->
      unless 'string' is typeof filepath
