Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6056 from urbit/jm/tomb-recurse
hood: recursive `|tomb`
- Loading branch information
Showing
3 changed files
with
182 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
:: Perform minimal norm change to delete a file, use =dry & for dry run | ||
:: | ||
:: TODO: recognize when it's going to fail because it's in the head of | ||
:: a desk, and maybe offer to |rm | ||
:: | ||
=, clay | ||
:- %say | ||
|= [[now=@da eny=@uvJ bec=beak] [target=path ~] dry=_|] | ||
:- %helm-pans | ||
=; cards | ||
?. dry cards | ||
%- (slog leaf+"card: {<cards>}" ~) ~ | ||
=| lubs=(list note-arvo) | ||
|- ^- (list note-arvo) | ||
=+ .^(=arch %cy target) | ||
?^ fil.arch (snoc lubs [%c %tomb %lobe u.fil.arch]) | ||
%- zing | ||
%+ turn ~(tap by dir.arch) | ||
|= [kid=@ta ~] | ||
^$(target (weld target /[kid])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters