I have a form that allows a user to change anything about a selected vehicle. When the vehicle is first added it creates a folder on the server. The name of the folder is the VIN number. My question is if a user changes the vin because they put the wrong vin in. How would I rename the directory.
Below is the code I use to create the original directory.
<cfset vin = #form.vin#>
<cfset destination="c:\coldfusion8\wwwroot\automotive\photos\"&#vin#&"\" >
<cfif Not DirectoryExists(destination) >
<cfdirectory action="create" directory="#destination#" >