mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-19 12:51:51 +03:00
7268164eba
Conflicts: app/hood.hoon arvo/ford.hoon gen/cat.hoon gen/ls.hoon gen/ls/subdir.hoon
25 lines
517 B
Plaintext
25 lines
517 B
Plaintext
::
|
|
:::: /hoon/subdir/ls/gen
|
|
::
|
|
/? 310
|
|
|%
|
|
++ subdir
|
|
|= {vane/?($c $g) pax/path des/(map @t $~)}
|
|
^- tank
|
|
:+ %rose [" " `~]
|
|
%+ turn (sort (~(tap by des)) aor)
|
|
|= {kid/@ta $~}
|
|
=+ paf=`path`/[kid]
|
|
=- :+ %rose ["/" ~ ?:(dir "/" ~)]
|
|
(turn paf |=(a/knot leaf+(trip a)))
|
|
|- ^- {dir/? paf/path}
|
|
=+ arf=.^(arch (cat 3 vane %y) (weld pax paf))
|
|
?^ fil.arf
|
|
[| paf]
|
|
?~ dir.arf
|
|
[& paf] :: !!
|
|
?. ?=({^ $~ $~} dir.arf)
|
|
[& paf]
|
|
$(paf (welp paf /[p.n.dir.arf]))
|
|
--
|