2015-05-28 05:46:58 +03:00
|
|
|
:: Tree view recursive directory contents
|
|
|
|
::
|
2015-09-12 00:15:25 +03:00
|
|
|
:::: /hoon/tree/gen
|
2015-05-28 05:46:58 +03:00
|
|
|
::
|
|
|
|
!:
|
|
|
|
::::
|
|
|
|
::
|
2015-09-12 03:24:51 +03:00
|
|
|
:- %say
|
2015-05-28 05:46:58 +03:00
|
|
|
|= [^ [pax=path fla=$|(~ [%full ~])] ~]
|
|
|
|
=+ len=(lent pax)
|
|
|
|
=+ rend=?^(fla dank:ut |=(a=path (dank:ut (slag len a))))
|
2015-06-17 00:36:04 +03:00
|
|
|
:- %tang %- flop
|
2015-05-28 05:46:58 +03:00
|
|
|
|- ^- tang
|
|
|
|
=+ ark=;;(arch .^(cy/pax))
|
2015-09-17 01:51:31 +03:00
|
|
|
=- ?~ fil.ark -
|
2015-05-28 05:46:58 +03:00
|
|
|
[(rend pax) -]
|
|
|
|
%- zing
|
|
|
|
%+ turn
|
2015-09-17 01:51:31 +03:00
|
|
|
(sort (~(tap by dir.ark)) aor)
|
2015-05-28 05:46:58 +03:00
|
|
|
|= [a=@t ~]
|
|
|
|
^$(pax (welp pax /[a]))
|