shrub/pkg/arvo/lib/desk-jam.hoon

23 lines
550 B
Plaintext
Raw Normal View History

2021-09-27 05:03:13 +03:00
=, clay
|%
++ jam-desk
|= [our=ship =desk now=@da]
~> %slog.0^leaf/"jamming desk {<desk>}"
2022-05-24 18:51:27 +03:00
=+ .^(=rang:clay %cx /(scot %p our)//(scot %da now)/rang)
=+ .^(=tako:clay %cs /(scot %p our)/[desk]/(scot %da now)/tako/~)
2021-09-27 05:03:13 +03:00
%- jam
%- ?:(=(%base desk) remove-misc-dirs same)
%- ~(run by q:(~(got by hut.rang) tako))
~(got by lat.rang)
2021-09-27 05:03:13 +03:00
::
++ remove-misc-dirs
|= fiz=(map path page)
^- (map path page)
%- ~(gas by *(map path page))
%+ skip ~(tap by fiz)
|= [p=path *]
?| ?=([%tmp *] p)
?=([%tests *] p)
==
2021-09-27 05:03:13 +03:00
--