Fix typo in __eraseDirectoryRecursiveCount variable name
This commit is contained in:
parent
bc47f90aff
commit
5dbbd73879
|
@ -3249,10 +3249,10 @@ void outOfMemory() {
|
|||
}
|
||||
|
||||
// Because the lambda used with nftw below cannot capture
|
||||
int __eraseDirectoryRecurseiveCount;
|
||||
int __eraseDirectoryRecursiveCount;
|
||||
|
||||
int eraseDirectoryRecursive(std::string const& dir) {
|
||||
__eraseDirectoryRecurseiveCount = 0;
|
||||
__eraseDirectoryRecursiveCount = 0;
|
||||
#ifdef _WIN32
|
||||
system(("rd /s /q \"" + dir + "\"").c_str());
|
||||
#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
|
||||
|
@ -3261,7 +3261,7 @@ int eraseDirectoryRecursive(std::string const& dir) {
|
|||
[](const char* fpath, const struct stat* sb, int typeflag, struct FTW* ftwbuf) -> int {
|
||||
int r = remove(fpath);
|
||||
if (r == 0)
|
||||
++__eraseDirectoryRecurseiveCount;
|
||||
++__eraseDirectoryRecursiveCount;
|
||||
return r;
|
||||
},
|
||||
64,
|
||||
|
@ -3278,7 +3278,7 @@ int eraseDirectoryRecursive(std::string const& dir) {
|
|||
#error Port me!
|
||||
#endif
|
||||
// INJECT_FAULT( platform_error, "eraseDirectoryRecursive" );
|
||||
return __eraseDirectoryRecurseiveCount;
|
||||
return __eraseDirectoryRecursiveCount;
|
||||
}
|
||||
|
||||
TmpFile::TmpFile() : filename("") {
|
||||
|
|
Loading…
Reference in New Issue