fileRename() Function

Having a seniors moment, but was there ever a fileRename function?

There is a directory rename function… do we just use fileMove then fileDelete?

Chris

Lucee 6.2/7 series…

Can’t you just do the fileMove? No need for fileDelete after, right?

fileMove(expandPath("./myFile.txt"), expandPath("./myNewFileName.txt"));
2 Likes