Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2006

Tip: Looking for answers? Try searching our database.

Detecting Hard Drive Space

Thread view: 
nospam@invalid.invalid - 30 Nov 2006 15:50 GMT
Do any of you know how to detect the size of a(n external) hard drive and
also how to find out how much free space there is?

TIA
Andrew Thompson - 30 Nov 2006 16:33 GMT
> Do any of you know how to detect the size of a(n external) hard drive and
> also how to find out how much free space there is?

Overview of the saga..
<http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4057701>

Andrew T.
nospam@invalid.invalid - 01 Dec 2006 07:44 GMT
> Overview of the saga..
> <http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4057701>
>
> Andrew T.

Oh! I didn't realise it was such a hard thing to achieve! And I must admit,
I'm still confused after reading most of that - in the bog standard current
SDK, is it now possible to use a standard method to detect HD space? Or are
people saying there's still a bug after all these years?!
Andrew Thompson - 01 Dec 2006 08:11 GMT
> > Overview of the saga..
> > <http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4057701>
...
(please trim 'sig's from replies)

> Oh! I didn't realise it was such a hard thing to achieve! And I must admit,
> I'm still confused after reading most of that -

I simply skimmed it, after finding the link from a
post on the forum that had referred to it (I recalled
it had been discussed on a number of occasions,
but have had no direct need for 'free space' type
methods - so have not gone deeply into it)

>...in the bog standard current
> SDK, is it now possible to use a standard method to detect HD space?

My understanding.  1.6 - yes.  1.1 - 1.5 no, not without
some Jakarta commons thing (? I thought I saw some
reference, in the thread).

>...Or are
> people saying there's still a bug after all these years?!

(shrug) 'people' say lots of things, I think it partly
depends on their perspective..  (I tend to think of
it as a sorely missing functionality, more an RFE,
than any sort of 'bug'.)

Andrew T.
nospam@invalid.invalid - 01 Dec 2006 09:26 GMT
> My understanding.  1.6 - yes.  1.1 - 1.5 no, not without
> some Jakarta commons thing (? I thought I saw some
> reference, in the thread).

OK thanks. Now I just have to find out what that method is! Anyone?!
Thomas Fritsch - 01 Dec 2006 10:17 GMT
nospam@invalid.invalid schrieb:
>>My understanding.  1.6 - yes.  1.1 - 1.5 no, not without
>>some Jakarta commons thing (? I thought I saw some
>>reference, in the thread).
>
> OK thanks. Now I just have to find out what that method is! Anyone?!

<http://java.sun.com/javase/6/docs/api/java/io/File.html#getFreeSpace()>

Signature

Thomas

nospam@invalid.invalid - 01 Dec 2006 11:01 GMT
> <http://java.sun.com/javase/6/docs/api/java/io/File.html#getFreeSpace()>

Hallelujah! Thanks Thomas!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.