blob: 873d3b61f4e680f70a6e46b27c80bdebda8cf1ae [file] [log] [blame]
Tomáš Pecka9b1c9672020-11-11 15:24:06 +01001#pragma once
2#include <filesystem>
3#include <string>
4
5/** @short Represents a temporary file whose lifetime is bound by lifetime of the FileInjector instance */
6class FileInjector {
7private:
8 const std::string path;
9
10public:
11 FileInjector(const std::filesystem::path& path, const std::filesystem::perms permissions, const std::string& content);
12 ~FileInjector() noexcept(false);
13 void setPermissions(const std::filesystem::perms permissions);
14};