     @expansionState.isExpanded = false
     @expansionState = @serializeExpansionState()
     @unwatch()
+    @emitter.emit('did-collapse')
 
   # Public: Expand this directory, load its children, and start watching it for
   # changes.

    @expansionState.isExpanded = true
    @reload()
    @watch()

  serializeExpansionState: ->
    expansionState = {}


  onDidRemoveEntries: (callback) ->
    @emitter.on('did-remove-entries', callback)

  onDidCollapse: (callback) ->
    @emitter.on('did-collapse', callback)

  onDidExpand: (callback) ->
    @emitter.on('did-expand', callback)

  loadRealPath: ->
    if @useSyncFS
