> On Sunday, Nov 24, 2002, at 12:51 US/Pacific, S. Isaac
> Dealey wrote:
>> <cffile action="rename"
>>      directory="#parent#/#rsdir.name#"
>>      newdirectory="#parent#/#newdir#">
>> In CF 5 this works like a charm. In CFMX if the new value
>> is the same as the old value an error is produced, saying
>> that it can't rename the existing directory because the
>> newdirectory already exists ( it's the same directory

> Well, that seems pretty reasonable behavior to me
> and the CF5 behavior sounds like a bug.

Yea, I wasn't sure if it was intentional or not... I could see arguments for
either... With action="rename" I would rather expect the tag to just do
nothing if the source and destination are the same ( i.e. "it's already
named that, therefore the task is complete" ), although I believe using CF 5
I've been able to use action="copy" and action="move" to replace existing
destination files / directories using cffile and cfdirectory which I'm sure
could have been accidental. In either case FileExists() and
DirectoryExists() allow you to manage file overwrites, so ... I'd vie for
maintaining the way it worked before, but I'm not about to spend huge
amounts of energy campaigning for that.

> So... I don't know.

> I'll ask the product team folks...

Thanks a lot Sean, I really appreciate your help. :)

s. isaac dealey                954-776-0046

new epoch                      http://www.turnkey.to

lead architect, tapestry cms   http://products.turnkey.to

certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to