How to get (used,available,total) disk/directory space with boost or poco? Thanks!
Asked
Active
Viewed 8,335 times
2 Answers
6
boost::filesystem::space seems to be what you want.
It returns a space_info object, which is a simple struct containing data (one of it space available to your application, and total free space).

paul23
- 8,799
- 12
- 66
- 149
-
@iuwei I have no experience with poco, sorry. – paul23 Feb 12 '12 at 12:54
-
space_info is a struct, not an enum – rve Feb 12 '12 at 16:04
-
@rve argh that's a stupid typo there, not sure what I was thinking. – paul23 Feb 12 '12 at 17:26