blob: 873d3b61f4e680f70a6e46b27c80bdebda8cf1ae [file] [log] [blame]
#pragma once
#include <filesystem>
#include <string>
/** @short Represents a temporary file whose lifetime is bound by lifetime of the FileInjector instance */
class FileInjector {
private:
const std::string path;
public:
FileInjector(const std::filesystem::path& path, const std::filesystem::perms permissions, const std::string& content);
~FileInjector() noexcept(false);
void setPermissions(const std::filesystem::perms permissions);
};