- check disk free space on Linuxes

This commit is contained in:
2020-06-03 12:33:48 +03:00
parent 086581a2b1
commit 2986655930
2 changed files with 21 additions and 0 deletions
+4
View File
@@ -19,6 +19,10 @@ public:
static std::string addTrailingSlash(const std::string& s);
static std::string mergePathes(const std::string& s1, const std::string& s2);
// Returns free space on volume for path
// Works for Linux only. For other systems (size_t)-1 is returned (for errors too)
static size_t getFreespace(const std::string& path);
};
#endif