mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
CFileHelpers: add function getDirSize()
Origin commit data
------------------
Commit: 1b095e725e
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-02-07 (Sat, 07 Feb 2015)
This commit is contained in:
@@ -91,6 +91,8 @@ class CFileHelpers
|
||||
static int createDir(std::string& Dir, mode_t mode = 755);
|
||||
static int createDir(const char *Dir, mode_t mode = 755){std::string dir = std::string(Dir);return createDir(dir, mode);}
|
||||
static bool removeDir(const char *Dir);
|
||||
static uint64_t getDirSize(const char *dir);
|
||||
static uint64_t getDirSize(const std::string& dir){return getDirSize(dir.c_str());};
|
||||
};
|
||||
|
||||
std::string to_string(int);
|
||||
|
Reference in New Issue
Block a user