mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
absolute paths
This commit is contained in:
@@ -15,15 +15,15 @@ class LoadPathsTask
|
||||
|
||||
paths = []
|
||||
isIgnored = (path) ->
|
||||
path = path.substring(rootPath.length + 1)
|
||||
for segment in path.split('/')
|
||||
return true if _.contains(ignoredNames, segment)
|
||||
ignoreGitIgnoredFiles and git?.isPathIgnored(fs.join(rootPath, path))
|
||||
onFile = (path) ->
|
||||
return if @aborted
|
||||
path = path.substring(rootPath.length + 1)
|
||||
paths.push(path) unless isIgnored(path)
|
||||
onDirectory = (path) =>
|
||||
not @aborted and not isIgnored(path.substring(rootPath.length + 1))
|
||||
not @aborted and not isIgnored(path)
|
||||
onDone = =>
|
||||
@callback(paths) unless @aborted
|
||||
|
||||
|
||||
Reference in New Issue
Block a user