>- see footer for list info -<
Yea, that's the scenario I'm trying to avoid it involves individual cffile
operations. I'm talking about thousands and thousands of them, all within
nested dirs etc.

It just seems so needlessly expensive, I/O wise.



On Thu, Feb 19, 2009 at 11:24 AM, Adrian Lynch <[email protected]>wrote:

> >- see footer for list info -<
> On CF8 (I think it was introduced then), cfdirectory has the recurse
> attribute which means you don't have to do the logic yourself. One query
> loop and you can do a copy/move on each file and all the parent dirs will
> be
> created for you.
>
> Not exactly the answer you wanted but it does mean it's not as bad as it
> could have been...
>
> ... I think.
>
> Adrian
>
> > -----Original Message-----
> > From: [email protected] [mailto:dev-
> > [email protected]] On Behalf Of Rich Wild
> > Sent: 19 February 2009 09:58
> > To: Coldfusion Development
> > Subject: [CF-Dev] moving entire directories
> >
> > >- see footer for list info -<
> > Morning,
> >
> > I'm currently working on a project where an existing CMS creates
> > potentially
> > thousands of directories (big site). Now, if an editor decided that
> > he/she
> > wanted to change the location of a page, the nature of this CMS
> > (currently)
> > is that it would have to get the directory and all its child
> > directories and
> > move them individually, which to me sounds like a lot of very
> > unnecessary
> > overhead.
> >
> > Is there a way (using com objects or harnessing java etc) in which we
> > can
> > simply move a top level directory without having to perform individual
> > cffile operations on all the children?
> >
> > CF8.
> >
> > ta
> >
> > Rich
>
>
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to
> http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
>
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to