How can I rename a file?

Hello.
How can I rename files?
I´ve tried this:
blocks-2
And this:
blocks-3
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…

Taifun

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


blocks-5

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