Steve, I am a little confused here, do you refer to the .Net Scripting.FileSystemObject or the Java one?
And I am confused with your statement about not being able to run 32bit on 64bit, are you referring to java here? There is not 64bit JVM, it is all 32bit at the moment. I am confused as to what you are really meaning. Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 9015 8628 Mobile: 0404 998 273 -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Onnis Sent: Monday, 12 May 2008 1:05 PM To: [email protected] Subject: [cfaussie] get the size of a folder using java I was using the Scripting.FileSystemObject to get file sizes and folder sizes for one of my applications but now I am running on a 64 bit system and the Scripting.FileSystemObject is a 32 bit application so I cant use it now. For files I am using the java.io.File class to get the file sizes but have hit a wall when trying to get folder sizes. I have looked at the java.io.File class does not have a length() method that works on folders to get the folder sizes. It seems the only way to do it is to loop over the listFiles() array and add the file sizes up and then manually recurse through any directories that might be in there. Seems like a bit of a pain really. Anyone got any better ideas? I have had a look at the .NET classes also and it seems the same thing is there, no more Size property of the Directory. Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---
