make path threadvar

This commit is contained in:
Dmitriy Ryajov 2023-09-20 09:42:37 -06:00
parent 7ceccf9a72
commit 2eb120bb66
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -155,6 +155,9 @@ method put*(
return success()
proc dirWalker(path: string): iterator: string {.gcsafe.} =
var localPath {.threadvar.}
localPath = path
return iterator(): string =
try:
for p in path.walkDirRec(yieldFilter = {pcFile}, relative = true):