2015-05-28 05:46:58 +03:00
|
|
|
:: ConCATenate file listings
|
|
|
|
::
|
2015-06-05 03:27:01 +03:00
|
|
|
:::: /hoon/cat/cat
|
2015-05-28 05:46:58 +03:00
|
|
|
::
|
2015-06-05 01:16:48 +03:00
|
|
|
// /%%/ls/subdir
|
|
|
|
// /%/pretty
|
2015-05-28 05:46:58 +03:00
|
|
|
!:
|
|
|
|
::::
|
|
|
|
::
|
|
|
|
|= [^ [arg=(list path)] ~]
|
2015-06-17 04:06:58 +03:00
|
|
|
=- tang/(flop `tang`(zing -))
|
2015-05-28 05:46:58 +03:00
|
|
|
%+ turn arg
|
|
|
|
|= pax=path
|
|
|
|
^- tang
|
|
|
|
=+ ark=;;(arch .^(%cy pax))
|
|
|
|
?^ q.ark
|
2015-06-17 04:06:58 +03:00
|
|
|
?: =(%sched -:(flop pax))
|
|
|
|
[>;;((map ,@da cord) .^(%cx pax))<]~
|
2015-05-28 05:46:58 +03:00
|
|
|
[leaf/(spud pax) (pretty-file .^(%cx pax))]
|
|
|
|
?- r.ark :: handle ambiguity
|
|
|
|
~
|
|
|
|
[rose/[" " `~]^~[leaf/"~" (smyt pax)]]~
|
|
|
|
[[@t ~] ~ ~]
|
|
|
|
$(pax (welp pax /[p.n.r.ark]))
|
|
|
|
*
|
|
|
|
=- [palm/[": " ``~]^-]~
|
|
|
|
:~ rose/[" " `~]^~[leaf/"*" (smyt pax)]
|
|
|
|
`tank`(subdir pax r.ark)
|
|
|
|
==
|
|
|
|
==
|