How to get (used,available,total) disk/directory space with boost or poco? Thanks!
How to get (used/available/total) disk space with boost or poco?
Asked Answered
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).
@Approachable I have no experience with poco, sorry. –
Agalloch
space_info is a struct, not an enum –
Apteral
@Apteral argh that's a stupid typo there, not sure what I was thinking. –
Agalloch
Poco::File("path").freeSpace
© 2022 - 2024 — McMap. All rights reserved.