mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Filter out non-directory project paths when deserializing Project
Closes #10628
This commit is contained in:
@@ -56,6 +56,7 @@ class Project extends Model
|
||||
|
||||
deserialize: (state, deserializerManager) ->
|
||||
state.paths = [state.path] if state.path? # backward compatibility
|
||||
state.paths = state.paths.filter (directoryPath) -> fs.isDirectorySync(directoryPath)
|
||||
|
||||
@buffers = _.compact state.buffers.map (bufferState) ->
|
||||
# Check that buffer's file path is accessible
|
||||
|
||||
Reference in New Issue
Block a user