Re: directory size
From: Dale King (DaleKing_at_newsrvr.tce.com)
Date: 07/04/04
- Next message: Dale King: "Re: setting variable for garbage collector"
- Previous message: Roedy Green: "Re: Can't read file when called from Applet?"
- In reply to: Roedy Green: "Re: directory size"
- Next in thread: Roedy Green: "Re: directory size"
- Reply: Roedy Green: "Re: directory size"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 4 Jul 2004 18:59:56 GMT-5
Hello, Roedy Green !
You wrote:
> On Thu, 01 Jul 2004 16:50:13 +0100, "Craig H."
> <spam@[at]thehurley.[dot]com> wrote or quoted :
>
> >Once I have a handle to a directory, how can I get the size of
it?
>
> you must add up the sizes of the files and directories in it.
But be aware that the file size you get in Java is the size of
the logical contents of the file not the amount of disk space
taken up. Such a method will tell you that 100 files that only
contain 1 byte are the same size as 1 file of 100 bytes. In
reality the amount of disk sace taken is vastly different.
-- Dale King My Blog: http://daleking.homedns.org/Blog
- Next message: Dale King: "Re: setting variable for garbage collector"
- Previous message: Roedy Green: "Re: Can't read file when called from Applet?"
- In reply to: Roedy Green: "Re: directory size"
- Next in thread: Roedy Green: "Re: directory size"
- Reply: Roedy Green: "Re: directory size"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|