In your cfdump, did you notice it said array? That's why you couldn't use the result as a query, it was an array.
Did you check the docs? http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSce19a0e5a003e2edfa09972122fa66a2e8-7ffe.html Use the third argument to specify query and you should be fine. On Fri, May 10, 2013 at 6:06 AM, Edward Chanter <[email protected]> wrote: > > I'm using the CFM filemanager, it's an old piece of code but has worked > great until now. It's not supported any more and I've encountered a weird > problem after migrating from CF8 to CF10 > > I'm getting an error after a directoryList() > > The code in question is: <cfset thisDir = directoryList(directory,false)> > > the error is: > > Attribute validation error for tag cfloop. > The value of the attribute query, which is currently thisDir, is invalid. > > But when I do a cfdump of the "thisDir" variable > > <cfset thisDir = directoryList(directory,false)> > <cfdump var="#thisDir#"> > <cfabort> > > I get this: > > array > 1 ** correct path to file**\080909 - 2009 and the decisions you should take > part 2.doc > 2 ** correct path to file**\1.jpg > 3 ** correct path to file**\10 Challenges to Delivering a Unified Customer > Experience.pdf > 4 ** correct path to file**\10 Challenges to Delivering a Unified Customer > Experience1.pdf > 5 ** correct path to file**\10 Challenges to Delivering a Unified Customer > Experience2.pdf > ... > 3531 ** correct path to file**\~$mbership Summary - Padraig Drennan Sept > 2011.docx > > So it lists out the folder no problemo. > > What am I missing here? I've been staring at it so long I can't see the > wood from the trees. Is there an undocumented change or bug in CF10 that > relates to directoryList()? I tried googling the problem but couldn't find > anything. > > Any help would be most appreciated, I could find another file manager but > the CF-junkie in me is completely perplexed with this error and would > *love* to figure out what's happening. > > Thanks in advance :) > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:355705 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

