Boost logo

Boost Users :

From: gchen (chengang31_at_[hidden])
Date: 2007-01-21 12:46:02


Daniel Wyatt wrote:
>
> Its not too pretty but ignore that please. It works for the most part.
> It gives perfect results for nearly all directories. One exception i've
> noticed on my system is "C:\Program Files". It gives me "419.15 MiB" but
> it should be giving me something more like "8.40 GiB". I figure an
> unsigned long is large enough, isn't it?

No, unsigned long is just 32 bits, it is not enough.

> Do i need to use an unsigned
> long long or is there something else wrong here???
>

Yes, you should use a 64 bit integer.

PS: Boost.Filesystem has a recursive_directory_iterator, it is
very good for such directory iteration job.

cg


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net