
15 Sep
2005
15 Sep
'05
5:46 p.m.
"Rob Stewart" <stewart@sig.com> wrote in message news:200509131320.j8DDKJ8K031913@shannonhoon.balstatdev.susq.com...
I propose this interface:
boost::uintmax_t free_space(path const &); boost::uintmax_t capacity(path const &);
In looking at this a bit further, both POSIX and windows distinguish between total free space and free space available "to nonprivileged process" (POSIX) or "to caller" (Windows). To accommodate this, we might have: boost::uintmax_t capacity(path const &); boost::uintmax_t total_free_space(path const &); boost::uintmax_t available_free_space(path const &); Comments? --Beman