 
   constructor: ({@name, fullPath, @symlink, @expandedEntries, @isExpanded, @isRoot}) ->
     @path = fullPath
+    @lowerCasePath = @path.toLowerCase() if fs.isCaseInsensitive()
+
     @isRoot ?= false
     @isExpanded ?= false
     @expandedEntries ?= {}


    false

  # Public: Does this directory contain the given path?
  #
  # See atom.Directory::contains for more details.
  contains: (pathToCheck) ->
    # @directory.contains(pathToCheck)

  # Public: Stop watching this directory for changes.
  unwatch: ->

    if repo?
      @subscribeToRepo(repo)
      @updateStatus(repo)
    @loadRealPath(repo)

  destroy: ->
    @unwatch()
    @unsubscribe()
    @emit 'destroyed'

  loadRealPath: (repo) ->
    fs.realpathSync @path, (error, realPath) =>
      if realPath
        @realPath = realPath
        @lowerCaseRealPath = @realPath.toLowerCase() if fs.isCaseInsensitive()
        @updateStatus(repo) if repo?
      else
        @realPath = @path
        @lowerCaseRealPath = @lowerCasePath

  # Subscribe to the given repo for changes to the Git status of this directory.
  subscribeToRepo: (repo) ->
