Quick actions

cmd+k|ctrl+k

Navigation

Languages

Recursively list .nim files

Snippet info

Language

Nim

Visibility

public

Author

oderwat

Created

2016-04-23T20:02:56Z

Updated

2016-04-23T20:03:27Z

# deep scan a folder for .nim files

import os
import strutils

proc deepWalk(path: string) =
    for x in walkDir(path):
        if x.kind == pcDir:
            deepWalk(x.path)
        elif x.path.endsWith ".nim":
            echo x.path

deepWalk("/")
INFO