mirror of
https://github.com/daylinmorgan/tsm.git
synced 2024-11-16 09:18:32 -06:00
ignore hidden directories
This commit is contained in:
parent
0d7459bca1
commit
258d5cd1e5
1 changed files with 3 additions and 2 deletions
|
@ -35,7 +35,8 @@ proc getTsmDirs(): seq[string] =
|
|||
result = tsmDirs.split(":")
|
||||
|
||||
proc findDuplicateProjects(
|
||||
paths: seq[string], sessions: var HashSet[string]
|
||||
paths: seq[string],
|
||||
sessions: var HashSet[string]
|
||||
): seq[Project] =
|
||||
var candidates: Table[string, seq[string]]
|
||||
for p in paths:
|
||||
|
@ -71,7 +72,7 @@ proc findProjects*(open: bool = false): seq[Project] =
|
|||
|
||||
for devDir in tsmConfig.paths:
|
||||
for (kind, path) in walkDir(devDir):
|
||||
if ({kind} * {pcFile, pcLinkToFile}).len > 0:
|
||||
if ({kind} * {pcFile, pcLinkToFile}).len > 0 or path.splitPath.tail.startsWith("."):
|
||||
continue
|
||||
candidates <- path
|
||||
|
||||
|
|
Loading…
Reference in a new issue