• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ParadoxGameConverters / CK3toEU5 / 29985798984

23 Jul 2026 06:40AM UTC coverage: 97.913% (-2.1%) from 100.0%
29985798984

Pull #21

github

web-flow
Merge eb64591b6 into 0b521d221
Pull Request #21: Output

269 of 280 new or added lines in 16 files covered. (96.07%)

516 of 527 relevant lines covered (97.91%)

4.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.21
/src/output/utils/folder_manager_impl.cpp
1
#include "folder_manager_impl.hpp"
2

3
#include <external/commonItems/Log.h>
4
#include <external/commonItems/OSCompatibilityLayer.h>
5

6
#include <cstdint>
7
#include <filesystem>
8
#include <stdexcept>
9
#include <string>
10

11

12

13
namespace out
14
{
15

16
void FolderManagerImpl::RemoveFolder(const std::filesystem::path& folder_path)
1✔
17
{
18
   if (commonItems::DoesFolderExist(folder_path))
1✔
19
   {
20
      Log(LogLevel::Info) << "Removing pre-existing copy of " << folder_path.string();
1✔
21
      if (remove_all(folder_path) == static_cast<std::uintmax_t>(-1))
1✔
22
      {
NEW
23
         throw std::runtime_error("Could not remove pre-existing output folder " + folder_path.string() +
×
NEW
24
                                  ". Please delete folder and try converting again.");
×
25
      }
26
   }
27
}
1✔
28

29
void FolderManagerImpl::RemoveFolder(const std::string& folder_path)
1✔
30
{
31
   RemoveFolder(std::filesystem::path(folder_path));
1✔
32
}
1✔
33

34
void FolderManagerImpl::CreateFolder(const std::filesystem::path& folder_path)
4✔
35
{
36
   if (commonItems::DoesFolderExist(folder_path))
4✔
37
   {
38
      throw std::runtime_error("Duplicate creation of " + folder_path.string() + ". Something went very wrong.");
1✔
39
   }
40

41
   if (!std::filesystem::create_directories(folder_path))
3✔
42
   {
NEW
43
      throw std::runtime_error("Could not create folder " + folder_path.string());
×
44
   }
45
}
3✔
46

47
void FolderManagerImpl::CreateFolder(const std::string& folder_path)
4✔
48
{
49
   CreateFolder(std::filesystem::path(folder_path));
4✔
50
}
3✔
51
}  // namespace out
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc