It's not a secret anymore!
The moose likes Beginning Java and the fly likes Directory Size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Directory Size" Watch "Directory Size" New topic

Directory Size

Yoo-Jin Lee
Ranch Hand

Joined: Nov 01, 2000
Posts: 119
I'm trying to figure out how to get the current size and max size of a directory. Can anyone help me out here? I prefer not to use the os's commands to get this info.
I suppose I can get the current size by adding up all the file sizes but this does not seem to be the best way.
[This message has been edited by Yoo-Jin Lee (edited November 15, 2001).]
Consider Paul's rocket mass heater.
subject: Directory Size
jQuery in Action, 3rd edition