Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Smart way of checking the hard drive?  RSS feed

 
Peter Pan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want my Java application to check if the hard disk drive is full or not. If it is full I want the application to terminate itself.
I could of course write 1 MB of dummy data to the disk and then delete it, but I was wondering if there is a smarter way.
/Peter
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!