btw it would be much easier to loop over the query object -as- a query
(instead of an index loop).
<cfloop query="Files">
<cffile action="delete" file="#directory#\#name#" />
</cfloop>
On 4/6/07, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> you tell me :)
>
> what's the issue. getting an error? files not being deleted?
>
> On 4/6/07, Deepak Gupta <[EMAIL PROTECTED]> wrote:
> > I am trying to do this
> > <cfdirectory action="list" name="Files"
> > directory="#getDirectoryFromPath(GetBaseTemplatePath())#SoundFile"
> > filter="*.zip">
> >
> >
> >
> > <cfloop from="1" to="#Files.recordcount#" index="i">
> >
> > <cffile action="delete"
> > file="#getDirectoryFromPath(GetBaseTemplatePath())#SoundFile\#Files[i]#>
> >
> > </cfloop>
> >
> > Wats goin wrong here??????
> >
> > >sorry, i should have specified that it returns a query object of the
> > >files in the directory :)
> > >
> > >On 4/6/07, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> > >> >
> >
> >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 &
Flex 2
Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU
Archive: http://www.houseoffusion.com/groups/CF-OT/message.cfm/messageid:270
Subscription: http://www.houseoffusion.com/groups/CF-OT/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.29