mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-18 12:22:10 +03:00
fc1068dfae
This reverts commit afcc1cb9a80db3a687d7a2a1dc3bf1be38df5b68.
21 lines
451 B
Plaintext
21 lines
451 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)))
|
|
?^ fil.arf
|
|
[| paf]
|
|
?~ dir.arf
|
|
[& paf] :: !!
|
|
?. ?+({^ $~ $~} dir.arf)
|
|
[& paf]
|
|
$(paf (welp paf /[p.n.dir.arf]))
|
|
--
|