Mercurial
>
repos
>
lgen
/ annotate
Search:
summary
shortlog
changelog
graph
tags
bookmarks
branches
files
help
file
latest
revisions
annotate
diff
comparison
raw
test.lua@d4b0773f5e06 (annotated)
test.lua
Mon, 06 Jul 2020 13:34:06 -0500
author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 06 Jul 2020 13:34:06 -0500
changeset 29
d4b0773f5e06
parent 2
3975fa5ed630
permissions
-rw-r--r--
Oops
1
e2face1be50e
Basic directory scanner
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
1
e2face1be50e
Basic directory scanner
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
2
require('scan')
e2face1be50e
Basic directory scanner
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
3
2
3975fa5ed630
(don't know)
Tuomo Valkonen <tuomov@iki.fi>
parents:
1
diff
changeset
4
h=scan.scan('/home/tuomov/work/newblog/src')
1
e2face1be50e
Basic directory scanner
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
5
2
3975fa5ed630
(don't know)
Tuomo Valkonen <tuomov@iki.fi>
parents:
1
diff
changeset
6
scan.hfold(h, '',
1
e2face1be50e
Basic directory scanner
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
7
function(a, n) return a.."/"..n end,
2
3975fa5ed630
(don't know)
Tuomo Valkonen <tuomov@iki.fi>
parents:
1
diff
changeset
8
function(a, n) print(a.." | "..n) end)
1
e2face1be50e
Basic directory scanner
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
9