RE: cfdirectory = slow

2003-10-21 Thread Barney Boisvert
If you are only pulling one file back, why are you using CFDIRECTORY at all? You already know the filename, so you can just use fileExists() to check if it's there, and CFFILE to read it in if you need the contents. -Original Message- From: Nelson Winters [mailto:[EMAIL PROTECTED] Sent:

Re: cfdirectory = slow

2003-10-21 Thread Nelson Winters
retrieving 1 file, however, this issue would affect any filtered directory listing. -Nelson - Original Message - From: Barney Boisvert To: CF-Talk Sent: Tuesday, October 21, 2003 1:46 PM Subject: RE: cfdirectory = slow If you are only pulling one file back, why are you using CFDIRECTORY

RE: cfdirectory = slow

2003-10-21 Thread Mike Townend
why not use java ? CFOUTPUT #CreateObject(java, java.io.File).init(FileNameAndPathHere).lastModified()# /CFOUTPUT HTH -Original Message- From: Nelson Winters [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 19:02 To: CF-Talk Subject: Re: cfdirectory = slow Thanks

RE: cfdirectory = slow

2003-10-21 Thread Barney Boisvert
Subject: Re: cfdirectory = slow Thanks for the suggestion.In my case, I actually need to get the LastModifiedDate provided by cfdirectory.I can work around the problem by calling some Delphi code a coworker created, but I'd like to see the problem get fixed.This really shouldn't be a problem.In

RE: cfdirectory = slow

2003-10-21 Thread Patricia G. L. Hall
Is there a similar way to find out the date the file was created? -Patti why not use java ? CFOUTPUT #CreateObject(java, java.io.File).init(FileNameAndPathHere).lastModified()# /CFOUTPUT HTH [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: cfdirectory = slow

2003-10-21 Thread Suyer, Ed [PRD Non-JJ]
Try caching the results of cfdirectory in application scope i.e. change: cfdirectory action="" directory=#vDir# name=dirTest filter=z#fileIndex#.txt cfdump var=#dirTest# to: cfif not isDefined(application.dirtest) cfdirectory action="" directory=#vDir# name=application.dirTest

RE: cfdirectory = slow

2003-10-21 Thread Mike Townend
21, 2003 15:30 To: CF-Talk Subject: RE: cfdirectory = slow Is there a similar way to find out the date the file was created? -Patti why not use java ? CFOUTPUT #CreateObject(java, java.io.File).init(FileNameAndPathHere).lastModified()# /CFOUTPUT HTH _ [Todays Threads] [This Mess

RE: cfdirectory = slow

2003-10-21 Thread Barney Boisvert
. -Original Message- From: Patricia G. L. Hall [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 7:30 AM To: CF-Talk Subject: RE: cfdirectory = slow Is there a similar way to find out the date the file was created? -Patti why not use java ? CFOUTPUT #CreateObject(java, java.io.File).init

RE: cfdirectory = slow

2003-10-21 Thread Patricia G. L. Hall
); Var theFile = fso.Getfile(path); Return theFile.DateCreated; } HTH -Original Message- From: Patricia G. L. Hall [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 15:30 To: CF-Talk Subject: RE: cfdirectory = slow Is there a similar way to find out the date the file

RE: cfdirectory = slow

2003-10-21 Thread Patricia G. L. Hall
the nastiness into something ready to use by CF. -Original Message- From: Patricia G. L. Hall [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 7:30 AM To: CF-Talk Subject: RE: cfdirectory = slow Is there a similar way to find out the date the file was created? -Patti why not use java

Re: cfdirectory = slow

2003-10-21 Thread Nelson Winters
:13 PM Subject: RE: cfdirectory = slow why not use java ? CFOUTPUT #CreateObject(java, java.io.File).init(FileNameAndPathHere).lastModified()# /CFOUTPUT HTH -Original Message- From: Nelson Winters [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 19:02 To: CF-Talk Subject: Re

RE: cfdirectory = slow

2003-10-21 Thread Barney Boisvert
: cfdirectory = slow Mike, Thanks for the info, I'll try it out along with the function Barney mentioned.To answer your question though, I didn't use java because I'm not very experienced using java and there, when trying to solve a problem, it's not the first option that I turn to. It sounds like

RE: cfdirectory = slow

2003-10-21 Thread Steven Erat
I would still like an answer to my original question as to how to bring this to macromedia's attention. Nelson, I logged bug 53607 for this.Thanks for pointing it out. Interestingly, while working with an test directory containing 31000 files, CFMX 6.1 required 83 seconds to run the

RE: cfdirectory = slow

2003-10-21 Thread Steven Erat
on RH 7.2. --- sh-2.04$ pwd /tmp/dirlist sh-2.04$ time ls -l /dev/null real 1m16.403s user 0m1.060s sys1m13.330s -- -Original Message- From: Steven Erat [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 6:03 PM To: CF-Talk Subject: RE: cfdirectory = slow I would still like

RE: cfdirectory = slow

2003-10-21 Thread Barney Boisvert
a FileFilter (you have to write the implementation) to do a basic RE search is in order. -Original Message- From: Steven Erat [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 3:41 PM To: CF-Talk Subject: RE: cfdirectory = slow One further note, the time required for the 'ls' command