         return @absolute(candidatePath) if @exists(candidatePath)
     undefined
 
+  # Deprecated:
   resolveOnLoadPath: (args...) ->
     loadPaths = Module.globalPaths.concat(module.paths)
     @resolve(loadPaths..., args...)
 
+  # Public: Finds the first file in the given path which matches the extension
+  # in the order given.
+  #
+  # * pathToResolve:
+  #   The String containing relative or absolute path of the file in question
+  #   without the extension or '.'.
+  # * extensions:
+  #   The ordered Array of extensions to try.
+  #
+  # Returns the absolute path of the file if it exists with any of the given
+  # extensions, otherwise it's undefined.
   resolveExtension: (pathToResolve, extensions) ->
     for extension in extensions
       if extension == ""

      '.zip'
    ], ext, true) >= 0

  isImageExtension: (ext) ->
    _.indexOf([
      '.gif'


    traverse(rootPath, onFile, onDirectory)

  # Public: Recursively walk the given path and execute the given functions
  # asynchronously.
  #
  # * rootPath:
  #   The String containing the directory to recurse into.
  # * onFile:
  #   The function to execute on each file, receives a single argument the
  #   absolute path.
  # * onDirectory:
  #   The function to execute on each directory, receives a single argument the
  #   absolute path (defaults to onFile)
  traverseTree: (rootPath, onFile, onDirectory, onDone) ->
    fs.readdir rootPath, (error, files) ->
      if error
