   # * path:
   #   A {String} representing the file directory
   # + symlink:
-  #   A {Boolean} indicating if the path is a symlink
+  #   A {Boolean} indicating if the path is a symlink (defaults to false).
   constructor: (@path, @symlink=false) ->
     @on 'first-contents-changed-subscription-will-be-added', =>
       @subscribeToNativeChangeEvents()

        @realPath = @path
    @realPath

  # Public: Returns whether the given path is inside this directory.
  contains: (pathToCheck) ->
    return false unless pathToCheck


  getBaseName: ->
    path.basename(@path)

  # Public: Returns the directory's symbolic path.
  #
  # This may include unfollowed symlinks or relative directory entries. Or it
  # may be fully resolved, it depends on what you give it.
  getPath: -> @path

  # Public: Returns this directory's completely resolved path.
  #
  # All relative directory entries are removed and symlinks are resolved to
  # their final destination.
  getRealPath: ->
    unless @realPath?
      try
