mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-14 15:04:14 +03:00
7268164eba
Conflicts: app/hood.hoon arvo/ford.hoon gen/cat.hoon gen/ls.hoon gen/ls/subdir.hoon
35 lines
732 B
Plaintext
35 lines
732 B
Plaintext
:: ConCATenate file listings
|
|
::
|
|
:::: /hoon/cat/gen
|
|
::
|
|
/? 310
|
|
// /%%/ls/subdir
|
|
// /%/pretty
|
|
!:
|
|
::::
|
|
::
|
|
:- %say
|
|
|= {^ {arg/(list path)} vane=?($c $g)}
|
|
=- tang+(flop `tang`(zing -))
|
|
%+ turn arg
|
|
|= pax/path
|
|
^- tang
|
|
=+ ark=.^(arch (cat 3 vane %y) pax)
|
|
?^ fil.ark
|
|
?: =(%sched -:(flop pax))
|
|
[> .^((map ,@da cord) (cat 3 vane %x) pax)<]~
|
|
[leaf+(spud pax) (pretty-file .^(noun (cat 3 vane %x) pax))]
|
|
?- dir.ark :: handle ambiguity
|
|
$~
|
|
[rose+[" " `~]^~[leaf+"~" (smyt pax)]]~
|
|
::
|
|
{{@t $~} $~ $~}
|
|
$(pax (welp pax /[p.n.dir.ark]))
|
|
::
|
|
*
|
|
=- [palm+[": " ``~]^-]~
|
|
:~ rose+[" " `~]^~[leaf+"*" (smyt pax)]
|
|
`tank`(subdir vane pax dir.ark)
|
|
==
|
|
==
|