2016-10-22 02:44:39 +03:00
|
|
|
:: Filesystem iterator XX move to lib/
|
2016-02-05 05:57:44 +03:00
|
|
|
::
|
2016-02-05 06:05:37 +03:00
|
|
|
:::: /hoon/subdir/ls/gen
|
2016-02-05 05:57:44 +03:00
|
|
|
::
|
2016-02-17 04:40:32 +03:00
|
|
|
/? 310
|
2015-05-28 05:46:58 +03:00
|
|
|
|%
|
|
|
|
++ subdir
|
2016-02-17 21:12:28 +03:00
|
|
|
|= {vane/?($c $g) pax/path des/(map @t $~)}
|
2015-05-28 05:46:58 +03:00
|
|
|
^- tank
|
|
|
|
:+ %rose [" " `~]
|
2017-02-13 23:43:18 +03:00
|
|
|
%+ turn (sort ~(tap by des) aor)
|
2016-01-26 03:52:58 +03:00
|
|
|
|= {kid/@ta $~}
|
2015-05-28 05:46:58 +03:00
|
|
|
=+ paf=`path`/[kid]
|
|
|
|
=- :+ %rose ["/" ~ ?:(dir "/" ~)]
|
2016-02-12 00:53:14 +03:00
|
|
|
(turn paf |=(a/knot leaf+(trip a)))
|
2016-01-26 03:52:58 +03:00
|
|
|
|- ^- {dir/? paf/path}
|
2016-02-19 02:52:34 +03:00
|
|
|
=+ arf=.^(arch (cat 3 vane %y) (weld pax paf))
|
2016-12-16 09:34:01 +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] :: !!
|
2016-02-12 00:53:14 +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
|
|
|
--
|