     path.join @getCachePath(), "#{login}-#{Date.now()}"
 
   cachedAvatar: (login, callback) ->
-    glob ?= require 'glob'
     glob @avatarGlob(login), (err, files) =>
       return callback(err) if err
       files.sort().reverse()

        callback(error, null)

  request: (path, callback) ->
    request ?= require 'request'
    options = {
      url: "#{@baseURL}#{path}"
      headers: DefaultRequestHeaders
    }

    request options, (err, res, body) =>

        children.forEach(deleteAvatar)

  getCachePath: ->
    @cachePath ?= path.join(remote.app.getPath('userData'), 'Cache', 'settings-view')
