Files
simple-object-server/src/utils.hpp
Your Name fd6cc5bef4
All checks were successful
Build-Test-Publish / Build (push) Successful in 1m8s
:-'Generic Commit'
2025-05-30 23:46:39 +12:00

21 lines
375 B
C++

#pragma once
#include <filesystem>
#include <iostream>
namespace simple_object_storage {
// Simple RAII helper for file deletion
class ScopeFileDeleter {
public:
ScopeFileDeleter(const std::filesystem::path& path);
~ScopeFileDeleter();
void release();
private:
std::filesystem::path path_;
bool released_;
};
std::string trim(const std::string& s);
}