Working through some bugs and upgrades to my RocketFM application I came across a pretty inter sting problem. I was trying to rename a directory from dan to DAN. It is the same directory but the file sytem is case sensitive so this should work right? Wrong! If you try and do this using cfdirectory you will get the following error.

The specified newdirectory attribute value is invalid.
c:\DAN already exists and cannot be overwritten. The exception occurred during a cfdirectory action="rename".

This is because of the fact that ColdFusion does not care about case. This was a bummer for me because users in the end will come back with I am unable to rename this directory and explaining the nature of case sensitivity is not really an answer. Lucky for me I always have a beast in the bullpen (Java) so this should be a pretty easy fix. This is the old rename directory method in my File manager component. To make sure we allow for case sensitive changes we can simply change our code to the following.