As the documemtation in Details and Options:
RenameFile works on cloud objects, changing their cloud file names but not their UUIDs.
I think this sentense imply the RenameFile
can apply into CloudObject
,but the question is how to?There are some examples of failure:
g=CloudDeploy[FormFunction[{"x"->"Integer"},#x!&]]
(* CloudObject[https://www.wolframcloud.com/objects/a13f1c37-68e7-4d5b-a4d1-549ba0311230] *)
ToString[First[g]]
(* https://www.wolframcloud.com/objects/a13f1c37-68e7-4d5b-a4d1-549ba0311230 *)
RenameFile[ToString[First[g]],"https://www.wolframcloud.com/objects/testgname"]
(* $Failed *)
RenameFile[g,CloudObject["https://www.wolframcloud.com/objects/testgname"]]
(* $Failed *)
https://www.wolframcloud.com/objects/testgname
? $\endgroup$ – Kuba♦ Oct 6 '16 at 10:59