• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 238
  • Last Modified:

Will Java5 return size of directory, including contents?

Dear Experts,

Can Java5 return the total bytes within a directory, without me needing to traverse the whole thing and count them up?  I'm a bad counter.

Thanks,
BrianMc1958
0
BrianMc1958
Asked:
BrianMc1958
  • 3
1 Solution
 
CEHJCommented:
In a word,  no ;-)
0
 
CEHJCommented:
>> I'm a bad counter.

Don't worry - it won't be you that's doing it ;-)
0
 
CEHJCommented:
:-)

You could always Runtime.exec dir or ls of course
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now