urbit/gen/hood/mv.hoon
rmariani 579efd9972
Remove old-zuse (#867)
* removes old-zuse
2018-10-26 16:19:18 -07:00

19 lines
396 B
Plaintext

:: Kiln: Move file in clay
::
:::: /hoon/mv/hood/gen
::
/? 310
=, space:userlib
:- %say
|= {^ {input/path output/path ~} ~}
:- %kiln-info
?. =(-:(flop input) -:(flop output))
["Can't move to a different mark" ~]
=+ dir=.^(arch %cy input)
?~ fil.dir
~& "No such file:"
[<input> ~]
:- "moved" :- ~
%+ furl (fray input)
(foal output -:(flop input) [%noun .^(* %cx input)])