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

  null

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

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

