Rename files

Hi everybody,

I don’t know if I am missing something obvious but how can you rename a file (other than copying it and deleting the original?)

File::moveFileTo() (see the API docs)

Rail

3 Likes

File::moveFileTo

Move and rename are the same operation more or less for the operating system

3 Likes

Nice one, thanks (I somehow overlooked it)