mirror of
https://github.com/daylinmorgan/tsm.git
synced 2024-12-22 05:00:44 -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(":")
|
result = tsmDirs.split(":")
|
||||||
|
|
||||||
proc findDuplicateProjects(
|
proc findDuplicateProjects(
|
||||||
paths: seq[string], sessions: var HashSet[string]
|
paths: seq[string],
|
||||||
|
sessions: var HashSet[string]
|
||||||
): seq[Project] =
|
): seq[Project] =
|
||||||
var candidates: Table[string, seq[string]]
|
var candidates: Table[string, seq[string]]
|
||||||
for p in paths:
|
for p in paths:
|
||||||
|
@ -71,7 +72,7 @@ proc findProjects*(open: bool = false): seq[Project] =
|
||||||
|
|
||||||
for devDir in tsmConfig.paths:
|
for devDir in tsmConfig.paths:
|
||||||
for (kind, path) in walkDir(devDir):
|
for (kind, path) in walkDir(devDir):
|
||||||
if ({kind} * {pcFile, pcLinkToFile}).len > 0:
|
if ({kind} * {pcFile, pcLinkToFile}).len > 0 or path.splitPath.tail.startsWith("."):
|
||||||
continue
|
continue
|
||||||
candidates <- path
|
candidates <- path
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue