mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-14 04:19:22 +03:00
b3901ab42f
git-subtree-dir: pkg/arvo git-subtree-mainline:9c8f40bf6c
git-subtree-split:c20e2a185f
18 lines
388 B
Plaintext
18 lines
388 B
Plaintext
:: Kiln: copy file in clay
|
|
::
|
|
:::: /hoon/cp/hood/gen
|
|
::
|
|
/? 310
|
|
:- %say
|
|
=, space:userlib
|
|
|= {^ {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> ~]
|
|
:- "copied"
|
|
`(foal output -:(flop input) [%atom %t ~] .^(* %cx input)) :: XX type
|