summaryrefslogtreecommitdiff
path: root/htc/tree.htc
diff options
context:
space:
mode:
Diffstat (limited to 'htc/tree.htc')
-rw-r--r--htc/tree.htc21
1 files changed, 21 insertions, 0 deletions
diff --git a/htc/tree.htc b/htc/tree.htc
new file mode 100644
index 0000000..8615108
--- /dev/null
+++ b/htc/tree.htc
@@ -0,0 +1,21 @@
1\const{HTCEXT}{htc htx html}
2\const{SKIPDIR}{sys htc SCCS}
3\def{tree.update}{}{
4 [xmod:=\now];
5 \ldef{trav}{x}{
6 \staturi{\1}{
7 \if(count stat.ALIAS)(@<-stat.);
8 \forall{it}{\dirent{\1}}{
9 \if(\dirmod(it)&24576){
10 \nif(\SKIPDIR which (it past \1)){\trav{[it]/}}
11 }{
12 \if(\HTCEXT which (it rpast ".")){
13 \staturi(it){\if(count stat.ALIAS)(@<-stat.)}
14 }
15 }
16 }
17 }
18 };
19 \db{TREE}{\trav{/}\query(XMOD<xmod){\rem.rec}}
20}
21