Question

Does fileMove() do exactly the same thing as <cffile action="rename">?

Was it helpful?

Solution

No they are different. There is no CFML Script function available to do a file Rename. So, the above use case is just a trick to achieve file rename.

You have to specify the same source and destination folder but change the file name in <destination>.

filemove("c:\userdata\files\myFile.docx", "c:\userdata\files\yourFile.docx");
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top