   SEP         = "/"
   SEP_RE      = /\/+/
   SEP_LAST_RE = /\/+$/
-
-  window.AsyncFs = AsyncFs  # For debugging
 
   #--------------------------------------------------------------------------------
   # Original properties

      chrome.fileSystem.chooseEntry(
        {type: "openDirectory"}
        (entry) =>
          return reject(Error(chrome.runtime.lastError)) unless entry?
          return resolve(entry)
      )
    ) # return new Promise()


  null

  invokeCallback = (callback, promise) ->
    promise.then((value) ->
      callback(null, value)
      return
    ).catch((error) ->
      callback(error)
