This is regarding my problem with cffile action=move just working some of the 
time. Barney told me somethin I suspected, which was to use a copy action, then 
delete it from the old directory. 

Well I ran into an even worse issue. Got an error saying it couldn't do it for 
some "unknown reason". YES, there's actually a CF error that says that. Isn't 
that what you love to see? Anyway, it worked a few times which makes it even 
more troublesome. So I thought I'd try this just for the heckuvit. 

<cfif FileExists(fullpath)>             
  <cffile action="copy" source="#fullpath#" destination="#destpath#">
        <cfloop from="1" to="50000" index="i">
        </cfloop>
  <cffile action="delete" file="#fullpath#"> 
</cfif>

Works everytime now! lol! I started looping to 10000 and it still errored. 
50000 seems to do the trick.  

Anybody got any better ideas? 

Will

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219836
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to