
12 Sep
2005
12 Sep
'05
6:21 p.m.
"Beman Dawes" wrote:
I'm planning to add a filesystem function to determine available disk space. Perhaps something like:
struct space_status { boost::uintmax_t available; // free space available to user boost::uintmax_t total; // total space on volume };
space_status filesystem_space( const path & p );
The single uintmax_t may not be able to capture all those free gigabytes. Better use two values. The name may be "available_disk_space". /Pavel