How can I rename a file?

How can I rename files?
I´ve tried this:
And this:
But, it always returns the error, Sorry, file to move doesn´t exist.

the first version does not use a correct relative path, which would be /Download/file.mp3
the second version looks correct…
but only if the file file.mp3 in directory Download also exists…
you can check it also with the Exists method…
note: moving files like this will stop working after Kodular targets SDK30…


The problem was that I was writing the name wrong, thats why it didn´t renamed the file.
This is working:


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.