mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-24 07:26:51 +03:00
21 lines
441 B
Plaintext
21 lines
441 B
Plaintext
|%
|
|
++ subdir
|
|
|= [pax=path des=(map ,@t ,~)]
|
|
^- tank
|
|
:+ %rose [" " `~]
|
|
%+ turn (sort (~(tap by des)) aor)
|
|
|= [kid=@ta ~]
|
|
=+ paf=`path`/[kid]
|
|
=- :+ %rose ["/" ~ ?:(dir "/" ~)]
|
|
(turn paf |=(a=span leaf/(trip a)))
|
|
|- ^- [dir=? paf=path]
|
|
=+ arf=;;(arch .^(%cy (weld pax paf)))
|
|
?^ q.arf
|
|
[| paf]
|
|
?~ r.arf
|
|
[& paf] :: !!
|
|
?. ?=([^ ~ ~] r.arf)
|
|
[& paf]
|
|
$(paf (welp paf /[p.n.r.arf]))
|
|
--
|