mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-26 08:25:04 +03:00
22 lines
403 B
Plaintext
22 lines
403 B
Plaintext
:: Tree view recursive directory contents
|
|
::
|
|
:::: /hoon/tree/gen
|
|
::
|
|
!:
|
|
::::
|
|
::
|
|
:- %say
|
|
|= [^ [pax=path fla=$|(~ [%full ~])] ~]
|
|
=+ len=(lent pax)
|
|
=+ rend=?^(fla dank:ut |=(a=path (dank:ut (slag len a))))
|
|
:- %tang %- flop
|
|
|- ^- tang
|
|
=+ ark=;;(arch .^(cy/pax))
|
|
=- ?~ fil.ark -
|
|
[(rend pax) -]
|
|
%- zing
|
|
%+ turn
|
|
(sort (~(tap by dir.ark)) aor)
|
|
|= [a=@t ~]
|
|
^$(pax (welp pax /[a]))
|