mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +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
@@ -208,6 +208,15 @@ public:
|
||||
/// Fills the vector with the names of all
|
||||
/// files in the directory.
|
||||
|
||||
FileSize totalSpace() const;
|
||||
/// Returns the total size in bytes of the partition containing this path.
|
||||
|
||||
FileSize usableSpace() const;
|
||||
/// Returns the number of usable free bytes on the partition containing this path.
|
||||
|
||||
FileSize freeSpace() const;
|
||||
/// Returns the number of free bytes on the partition containing this path.
|
||||
|
||||
bool operator == (const File& file) const;
|
||||
bool operator != (const File& file) const;
|
||||
bool operator < (const File& file) const;
|
||||
|
||||
Reference in New Issue
Block a user