mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
#1545: Merge partition space information methods from develop
This commit is contained in:
@@ -232,6 +232,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;
|
||||
|
||||
@@ -57,6 +57,9 @@ protected:
|
||||
void removeImpl();
|
||||
bool createFileImpl();
|
||||
bool createDirectoryImpl();
|
||||
FileSizeImpl totalSpaceImpl() const;
|
||||
FileSizeImpl usableSpaceImpl() const;
|
||||
FileSizeImpl freeSpaceImpl() const;
|
||||
static void handleLastErrorImpl(const std::string& path);
|
||||
|
||||
private:
|
||||
|
||||
@@ -57,6 +57,9 @@ protected:
|
||||
void removeImpl();
|
||||
bool createFileImpl();
|
||||
bool createDirectoryImpl();
|
||||
FileSizeImpl totalSpaceImpl() const;
|
||||
FileSizeImpl usableSpaceImpl() const;
|
||||
FileSizeImpl freeSpaceImpl() const;
|
||||
static void handleLastErrorImpl(const std::string& path);
|
||||
|
||||
private:
|
||||
|
||||
@@ -58,6 +58,9 @@ protected:
|
||||
void removeImpl();
|
||||
bool createFileImpl();
|
||||
bool createDirectoryImpl();
|
||||
FileSizeImpl totalSpaceImpl() const;
|
||||
FileSizeImpl usableSpaceImpl() const;
|
||||
FileSizeImpl freeSpaceImpl() const;
|
||||
static void handleLastErrorImpl(const std::string& path);
|
||||
|
||||
private:
|
||||
|
||||
@@ -58,6 +58,9 @@ protected:
|
||||
void removeImpl();
|
||||
bool createFileImpl();
|
||||
bool createDirectoryImpl();
|
||||
FileSizeImpl totalSpaceImpl() const;
|
||||
FileSizeImpl usableSpaceImpl() const;
|
||||
FileSizeImpl freeSpaceImpl() const;
|
||||
static void handleLastErrorImpl(const std::string& path);
|
||||
static void convertPath(const std::string& utf8Path, std::wstring& utf16Path);
|
||||
|
||||
|
||||
@@ -58,6 +58,9 @@ protected:
|
||||
void removeImpl();
|
||||
bool createFileImpl();
|
||||
bool createDirectoryImpl();
|
||||
FileSizeImpl totalSpaceImpl() const;
|
||||
FileSizeImpl usableSpaceImpl() const;
|
||||
FileSizeImpl freeSpaceImpl() const;
|
||||
static void handleLastErrorImpl(const std::string& path);
|
||||
static void convertPath(const std::string& utf8Path, std::wstring& utf16Path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user