1

Possible Duplicate:
How to find how much disk space is left using Java?

Can somebody tell me how to get freespace and totalspace on java 1.5? I know there is API for java 1.6, getTotalSpace and getFreeSpace, but I really need to get it done on 1.5, thanks for any pointers!

Community
  • 1
  • 1
Even
  • 287
  • 2
  • 8
  • 21
  • 1
    The 2nd highest scoring answer of the linked question is for older Java releases ... – Stephen C Jun 17 '11 at 06:23
  • For anyone who finds this in the future and notices that the linked answers don't include a way to get the **total space**, here you go: https://stackoverflow.com/questions/1130660/portable-way-of-finding-total-disk-size-in-java-pre-java-6 – Paul M. Nov 16 '17 at 11:02

0 Answers0