absolute paths

This commit is contained in:
Chris Wanstrath
2013-03-27 19:11:27 -07:00
parent 764a7bf257
commit 7f8978f07a

View File

@@ -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