In general, I like it.

I think I would like to see a exception check strategy for the java createobject when the CFC is first invoked that would make a false value return. There may be some other functions where exception handling may be useful. cfthrows are hard to manage from the application.

I don't have a good idea for you on a strategy. Maybe another function in the CFC called hasException that can provide a return code data structure rather than the cfthrow message.

Maybe something like:

Request.ReturnCode = structnew();
Request.ReturnCode.Value = 0;
Request.ReturnCode.Message ="";

Then in the CFC's hasExpection()

 <cfswitch expression="Arguments.Execption">
 <cfcase value="writeFile">
   <cfset Request.ReturnCode.Value = 10 >
   <cfset Request.ReturnCode.Message = "blah blah" >
  </cfcase>
</cfswitch>


CF functions and tags do not have return codes. Something I never liked in CF. But your CFC seems like a good candidate to work out an approach.



At 12:48 PM 10/9/2004, you wrote:
A stateless CFC that support different kind of file I/O tasks, including
recursive directory listing and much more.

Feel free to grab it here:

http://www.olimpo.ch/tmt/cfc/tmt_file_io

Any feedback is appreciated

----------------------------
Massimo Foti
DW tools: http://www.massimocorner.com
CF tools:  http://www.olimpo.ch/tmt/
----------------------------



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

----------------------------------------------------------------------- http://www.switch-box.org/CFSQLTool/Download/

Switch_box                      MediaFirm, Inc.
www.Switch-box.org              Loveland, CO  USA

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to