From 5dbbd7387907a5a2032b2e0c817b9c739b43c095 Mon Sep 17 00:00:00 2001 From: sfc-gh-tclinkenbeard Date: Sat, 10 Sep 2022 21:07:43 -0700 Subject: [PATCH] Fix typo in __eraseDirectoryRecursiveCount variable name --- flow/Platform.actor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flow/Platform.actor.cpp b/flow/Platform.actor.cpp index aa2e231cca..5d79199706 100644 --- a/flow/Platform.actor.cpp +++ b/flow/Platform.actor.cpp @@ -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("") {