Barney, Thanks, the java idea is more along the lines of what I was looking for! :-)
John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -----Original Message----- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 12:49 PM To: CF-Talk Subject: Re: Get file size on UNIX? CFDIRECTORY will do it, but has the cost of scanning the whole directory, which may or may not matter. You can also use java.io.File to do it like this #createObject("java", "java.io.File").init("/full/path/to/file").length()#, but that obviously has to be done individually for each file. Both of these will work cross-platform (i.e. don't depend on *nix), because hey rely solely on Java. cheers, barneyb On 4/28/05, Burns, John D <[EMAIL PROTECTED]> wrote: > I'm not a unix guy so I appologize for the (hopefully) easy question. > What's the easiest way to get the file size of a file that is already > sitting on the server? I need to loop over a list of files and save > the file size and name of each file to a db. Any help that can be > offered would be greatly appreciated. Thanks. > > John Burns > Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | > Web Developer -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204964 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

