test.lua

Mon, 06 Jul 2020 12:19:21 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 06 Jul 2020 12:19:21 -0500
changeset 23
0ea4b0786b43
parent 2
3975fa5ed630
permissions
-rw-r--r--

Only parse metadata if starts on first line


require('scan')

h=scan.scan('/home/tuomov/work/newblog/src')

scan.hfold(h, '',
      function(a, n) return a.."/"..n end, 
      function(a, n) print(a.." | "..n) end)
      

mercurial