mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-03 02:35:52 +03:00
%sink
This commit is contained in:
parent
43160147f4
commit
082ef00b83
26
pkg/base-dev/lib/sink.hoon
Normal file
26
pkg/base-dev/lib/sink.hoon
Normal file
@ -0,0 +1,26 @@
|
||||
/+ noun-diff
|
||||
|%
|
||||
++ clog
|
||||
|$ [stut]
|
||||
$%
|
||||
[%flush stut]
|
||||
[%drain patch:noun-diff]
|
||||
==
|
||||
++ sink
|
||||
|* pats=(list path)
|
||||
|* stat=*
|
||||
|@
|
||||
++ sync
|
||||
|= [stat=_stat]
|
||||
^- [card:agent:gall _..sync]
|
||||
=/ dif
|
||||
%+ diff:noun-diff ^stat stat
|
||||
:-
|
||||
[%give %fact pats %noun !>(^-((clog) [%drain dif]))]
|
||||
..sync(stat stat)
|
||||
++ paths pats
|
||||
++ flush
|
||||
^- card:agent:gall
|
||||
[%give %fact pats %noun !>(^-((clog) [%flush (extract stat)]))]
|
||||
--
|
||||
--
|
Loading…
Reference in New Issue
Block a user