mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-09 04:06:37 +03:00
Merge pull request #6057 from urbit/jm/recurse-rm
kiln: recursive `|rm`
This commit is contained in:
commit
cb95c641a1
@ -766,11 +766,19 @@
|
|||||||
::
|
::
|
||||||
++ poke-rm
|
++ poke-rm
|
||||||
|= a=path
|
|= a=path
|
||||||
|
=| c=(list (unit toro))
|
||||||
|
%+ poke-info "removed: {<a>}"
|
||||||
|
=- %+ roll -
|
||||||
|
|= [a=(unit toro) b=(unit toro)]
|
||||||
|
(clap a b furl)
|
||||||
|
|- ^- (list (unit toro))
|
||||||
=+ b=.^(arch %cy a)
|
=+ b=.^(arch %cy a)
|
||||||
?~ fil.b
|
?: ?=([^ ~] b) (snoc c `(fray a))
|
||||||
=+ ~[leaf+"No such file:" leaf+"{<a>}"]
|
=? c ?=(^ fil.b) (snoc c `(fray a))
|
||||||
abet:(spam -)
|
%- zing
|
||||||
(poke-info "removed" `(fray a))
|
%+ turn ~(tap by dir.b)
|
||||||
|
|= [kid=@ta ~]
|
||||||
|
^$(a (weld a /[kid]))
|
||||||
::
|
::
|
||||||
++ poke-schedule
|
++ poke-schedule
|
||||||
|= [where=path tym=@da eve=@t]
|
|= [where=path tym=@da eve=@t]
|
||||||
|
Loading…
Reference in New Issue
Block a user