mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 02:22:12 +03:00
27 lines
494 B
Plaintext
27 lines
494 B
Plaintext
:: Tree view recursive directory contents
|
|
::
|
|
:::: /hook/core/tree/app
|
|
::
|
|
/+ sh-utils
|
|
!:
|
|
::::
|
|
::
|
|
|_ [hid=hide ~]
|
|
++ peer ,_`.
|
|
++ poke--args
|
|
%+ args-into-gate .
|
|
|= [pax=path fla=$|(~ [%full ~])]
|
|
=+ len=(lent pax)
|
|
=+ rend=?^(fla dank:ut |=(a=path (dank:ut (slag len a))))
|
|
:- %tang
|
|
|- ^- tang
|
|
=+ ark=;;(arch .^(cy/pax))
|
|
=- ?~ q.ark -
|
|
[(rend pax) -]
|
|
%- zing
|
|
%+ turn
|
|
(sort (~(tap by r.ark)) aor)
|
|
|= [a=@t ~]
|
|
^$(pax (welp pax /[a]))
|
|
--
|