mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 20:04:09 +03:00
23 lines
407 B
Plaintext
23 lines
407 B
Plaintext
:: Tree view recursive directory contents
|
|
::
|
|
:::: /hoon/tree/gen
|
|
::
|
|
/? 310
|
|
!:
|
|
::::
|
|
::
|
|
:- %say
|
|
|= {^ {pax/path fla/$@($~ {$full $~})} $~}
|
|
=+ len=(lent pax)
|
|
=+ rend=?^(fla smyt |=(a/path (smyt (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]))
|