In CF 5 I have this directory structure

/parent
  /001
  /003
  /007

etc...

So ... Say I want to change the length of those numbers ( number of digits )
from 3 to something else ( user defined ) I don't necessarily know how many
digits the user will enter ... In CF 5, this is no problem with something
similar to this:

<cfset numberformat = RepeatString(0,form.optimizeforvolume)>
<cfdirectory name="rsdir" action="list"
        sort="name" directory="#parent#">

<cfloop query="rsdir">
<cfset newdir = numberformat(rsdir.name,numbeformat)>
<cffile action="rename"
        directory="#parent#/#rsdir.name#"
        newdirectory="#parent#/#newdir#">
</cfloop>

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
). What I need to know is -- is this a planned changed from CF 5 and if it's
not a planned change from CF 5 are there plans to fix it, or do I need to
submit a bug report? I don't see anything about cffile or cfdirectory in the
known issues list

http://www.macromedia.com/v1/Handlers/index.cfm?ID=23464&Method=Full

I haven't tested it, but I'm guessing this is also true of cffile.

The past few days the phone company's been doing repairs on my line and
every time they come out they fix one thing and cause another problem, so
now my dsl is hozed up in a fashion that's making Macromedia.com practically
unnavigable because on any given page only one or two of the images and
flash movies will load. And since it's related to my browsing the web and I
don't get my dsl service from the phone company unfortunately I'm doubtful
that I'll be able to convince them that they've screwed up again, so it may
be a while before macromedia.com is useable for me again.

Thanks,

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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to