File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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).]
I agree. Here's the link:
subject: Directory Size
It's not a secret anymore!