Just confirming, there's no way to listFiles or walkFiles at compile time, correct? This is because importc cannot be used at compile time, rendering walkFiles and execProcess unhelpful.
My only workaround is to make a nimscript file with a build action that uses listFiles and passes this string to the compiler as a define.
Really? That would be fantastic!
I'm using 1.5.1 but am still having the original issue. Maybe you can see I'm doing something stupid?
walkDir in the static block:
Error: cannot 'importc' variable at compile time; getcwd