   # * 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()

  getBaseName: ->
    path.basename(@path)

  # Public: Returns the directory's path.
  #
  # FIXME what is the difference between real path and path?
  getPath: -> @path

  # Public: Returns this directory's real path.
  #
  # FIXME what is the difference between real path and path?
  getRealPath: ->
    unless @realPath?
      try

        @realPath = @path
    @realPath

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

