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:

(* CloudObject[https://www.wolframcloud.com/objects/a13f1c37-68e7-4d5b-a4d1-549ba0311230] *)

(* https://www.wolframcloud.com/objects/a13f1c37-68e7-4d5b-a4d1-549ba0311230 *)

(* $Failed *)

(* $Failed *)
  • $\begingroup$ What do you expect to happen if each of us change one of our urls to https://www.wolframcloud.com/objects/testgname? $\endgroup$ – Kuba Oct 6 '16 at 10:59
  • $\begingroup$ @Kuba Yes,can we? $\endgroup$ – yode Oct 6 '16 at 11:09

You can't specify the url fully, it has to contain information that it is yours. So $WolframUUID needs to be there, you can change the name:

co = CloudDeploy[FormFunction[{"x" -> "Integer"}, #x! &], "name"]
RenameFile[co, CloudObject["anotherName"]]

Alternatively you can use URLShorten to make it more compact.

  • $\begingroup$ Wow,it is exactly what I want.Thanks a lot.And I note the anonymous CloudObject is not in my cloud directory and we cannot find it in this page? $\endgroup$ – yode Oct 6 '16 at 18:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.