Windows uses wstring, *nix uses string

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2015-02-23 22:46:49 -07:00
parent 518502145d
commit fe396aa3f5
2 changed files with 0 additions and 10 deletions

View File

@@ -22,10 +22,6 @@ int ftw_function(const char *fpath, const struct stat *sb, int tflag, struct FTW
ftw_summer += sb->st_size;
return 0; /* To tell nftw() to continue */
}
unsigned long long CalculateDirSize(const std::wstring &path){
std::string path(path.begin(), path.end());
return CalculateDirSize(path);
}
unsigned long long CalculateDirSize(const std::string &path){
ftw_summer = 0;
int flags = 0 | FTW_DEPTH | FTW_PHYS;