mirror of
https://github.com/urbit/shrub.git
synced 2024-12-12 18:48:14 +03:00
fc1068dfae
This reverts commit afcc1cb9a80db3a687d7a2a1dc3bf1be38df5b68.
22 lines
401 B
Plaintext
22 lines
401 B
Plaintext
:: Tree view recursive directory contents
|
|
::
|
|
:::: /hoon+tree+gen
|
|
::
|
|
!:
|
|
::::
|
|
::
|
|
:- %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]))
|