diff --git a/src/common/file_system/local_file_system.cpp b/src/common/file_system/local_file_system.cpp index ac2023201b..47fd4766eb 100644 --- a/src/common/file_system/local_file_system.cpp +++ b/src/common/file_system/local_file_system.cpp @@ -251,7 +251,8 @@ bool isSubdirectory(const std::filesystem::path& base, const std::filesystem::pa auto basePath = std::filesystem::weakly_canonical(base); auto subPath = std::filesystem::weakly_canonical(sub); - return std::search(subPath.begin(), subPath.end(), basePath.begin(), basePath.end()) == subPath.begin(); + return std::search(subPath.begin(), subPath.end(), basePath.begin(), basePath.end()) == + subPath.begin(); } void LocalFileSystem::removeFileIfExists(const std::string& path) {