2015-05-28 05:46:58 +03:00
|
|
|
|%
|
|
|
|
++ 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)))
|
2015-09-08 23:15:40 +03:00
|
|
|
?^ fil.arf
|
2015-05-28 05:46:58 +03:00
|
|
|
[| paf]
|
2015-09-08 23:15:40 +03:00
|
|
|
?~ dir.arf
|
2015-05-28 05:46:58 +03:00
|
|
|
[& paf] :: !!
|
2015-09-08 23:15:40 +03:00
|
|
|
?. ?=([^ ~ ~] dir.arf)
|
2015-05-28 05:46:58 +03:00
|
|
|
[& paf]
|
2015-09-08 23:15:40 +03:00
|
|
|
$(paf (welp paf /[p.n.dir.arf]))
|
2015-05-28 05:46:58 +03:00
|
|
|
--
|