mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
use full paths in meta-t
This commit is contained in:
@@ -9,14 +9,13 @@ module.exports =
|
||||
|
||||
paths = []
|
||||
isIgnored = (path) ->
|
||||
path = path.substring(rootPath.length + 1)
|
||||
for segment in path.split('/')
|
||||
return true if _.contains(ignoredNames, segment)
|
||||
repo?.isPathIgnored(fs.join(rootPath, path))
|
||||
onFile = (path) ->
|
||||
path = path.substring(rootPath.length + 1)
|
||||
paths.push(path) unless isIgnored(path)
|
||||
onDirectory = (path) ->
|
||||
path = path.substring(rootPath.length + 1)
|
||||
not isIgnored(path)
|
||||
fs.traverseTree(rootPath, onFile, onDirectory)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user