How to get (used/available/total) disk space with boost or poco?
Asked Answered
A

2

6

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

Approachable answered 12/2, 2012 at 12:4 Comment(0)
A
7

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).

Agalloch answered 12/2, 2012 at 12:14 Comment(3)
@Approachable I have no experience with poco, sorry.Agalloch
space_info is a struct, not an enumApteral
@Apteral argh that's a stupid typo there, not sure what I was thinking.Agalloch
B
0
Poco::File("path").freeSpace

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

Bargeman answered 2/3, 2022 at 10:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.