Task

Walk a given directory tree and print files matching a given pattern.


Note: This task is for recursive methods.   These tasks should read an entire directory tree, not a single directory.


Note: Please be careful when running any code examples found here.



Related task

   Walk a directory/Non-recursively   (read a single directory). 


; list all files at current path
print list.recursive "."
 
; get all files at given path
; and select only the ones we want
 
; just select the files with .md extension
select list.recursive "some/path" 
    => [".md" = extract.extension]
 
; just select the files that contain "test"
select list.recursive "some/path" 
    => [in? "test"]