40 {
42 std::filesystem::create_directories(flowDir);
45
46 _accessFileFd = ::open(accessFilePath.c_str(), O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC, 0644);
48 {
49 auto const error = errno;
50 throw std::system_error{error, std::system_category(), "Failed to open access file"};
51 }
52
53 _dataFileFd = ::open(dataFilePath.c_str(), O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC, 0644);
54
56 {
57 auto const error = errno;
58 throw std::system_error{error, std::system_category(), "Failed truncate access file"};
59 }
60
62 {
63 auto const error = errno;
64 throw std::system_error{error, std::system_category(), "Failed truncate access file"};
65 }
66 }
std::filesystem::path makeFlowAccessFilePath(std::filesystem::path const &flowDirectory)
std::filesystem::path makeFlowDataFilePath(std::filesystem::path const &flowDirectory)
std::filesystem::path makeFlowDirectoryName(std::filesystem::path const &domain, std::string const &uuid)