5

How to get (used,available,total) disk/directory space with boost or poco? Thanks!

Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982
iuwei
  • 317
  • 1
  • 3
  • 13

2 Answers2

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
0
Poco::File("path").freeSpace

https://docs.pocoproject.org/current/Poco.File.html#14634

Kristonitas
  • 201
  • 1
  • 10