RE: How to get file information?

2005-01-10 Thread Kazmierczak, Kevin
I guess I could use cfdirectory with a filter, that would probably do it. -Original Message- From: Kazmierczak, Kevin [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 2:17 PM To: CF-Talk Subject: How to get file information? How would one get information on a file from CF? I

Re: How to get file information?

2005-01-10 Thread Al Everett
Use CFDIRECTORY with the Filter attribute. Then you'll only get information about your specific file. On Mon, 10 Jan 2005 14:16:56 -0500, Kazmierczak, Kevin [EMAIL PROTECTED] wrote: How would one get information on a file from CF? I want to know when the file was last modified. I know I

RE: How to get file information?

2005-01-10 Thread Katz, Dov B (IT)
to get file information? Use CFDIRECTORY with the Filter attribute. Then you'll only get information about your specific file. On Mon, 10 Jan 2005 14:16:56 -0500, Kazmierczak, Kevin [EMAIL PROTECTED] wrote: How would one get information on a file from CF? I want to know when the file

RE: How to get file information?

2005-01-10 Thread Calvin Ward
Subject: RE: How to get file information? CFDirectory is probably not that performant, as it has to iterate through the file list to find the file you want. I suggest CFOBJECT type=java name=MyFile class=java.io.File Cfset myFile.init(#expandpath(yourfile...etc)#) Then you have access to all

RE: How to get file information?

2005-01-10 Thread Katz, Dov B (IT)
. dov -Original Message- From: Calvin Ward [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 2:54 PM To: CF-Talk Subject: RE: How to get file information? Actually, it wouldn't have to iterate cfdirectory action=list name=qGetDir directory=C:\mydir\mysubdir filter=myfile.ext Should

Re: How to get file information?

2005-01-10 Thread Al Everett
than a java.io.File construction I could be wrong, as this is all speculation. dov -Original Message- From: Calvin Ward [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 2:54 PM To: CF-Talk Subject: RE: How to get file information? Actually, it wouldn't have to iterate

RE: How to get file information?

2005-01-10 Thread Kazmierczak, Kevin
To: CF-Talk Subject: Re: How to get file information? I just tested it with CF5 on a desktop-class machine on a directory of ~ 47,000 GIF and JPEG images each between 15k and 30k in size. CFDIRECTORY with a filename in the Filter attribute came back in 120 ms. 20 of that for CFDUMP and 100