mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
Add partition space information to File class
Add File::totalSpaceImpl(), File::usableSpaceImpl() and File::freeSpaceImpl() to retrieve total, available and usable space in the filesystem for the specified path.
This commit is contained in:
committed by
Tobias Taschner
parent
59b5b4e46e
commit
9972496811
@@ -316,6 +316,24 @@ void File::list(std::vector<std::string>& files) const
|
||||
}
|
||||
|
||||
|
||||
File::FileSize File::totalSpace() const
|
||||
{
|
||||
return totalSpaceImpl();
|
||||
}
|
||||
|
||||
|
||||
File::FileSize File::usableSpace() const
|
||||
{
|
||||
return usableSpaceImpl();
|
||||
}
|
||||
|
||||
|
||||
File::FileSize File::freeSpace() const
|
||||
{
|
||||
return freeSpaceImpl();
|
||||
}
|
||||
|
||||
|
||||
void File::list(std::vector<File>& files) const
|
||||
{
|
||||
files.clear();
|
||||
|
||||
Reference in New Issue
Block a user