I am designing a small app to take and maintain monthly backups. Here I want to get the folder's size just to verify whether enough space is available on the destination disk or not. I am traversing the directory structure once to take the backup(copy the same dir structure.)Now for finding the size, as I have Mentioned, I don't want to use recursion. So is there any other simpler method?
Thanks to all of you,i have finally used the org.apache.commons.io.FileUtils to get the job done, after all this package also uses recursion.