1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-24 13:17:41 +00:00

Implement destroy channel.

This commit is contained in:
Thomas Harte
2025-11-22 09:39:05 -05:00
parent 507b81a8a4
commit e2ef3226af
3 changed files with 19 additions and 0 deletions

View File

@@ -8,6 +8,8 @@
#include "FileBundle.hpp"
#include <cstdio>
using namespace Storage::FileBundle;
LocalFSFileBundle::LocalFSFileBundle(const std::string &to_contain) {
@@ -27,3 +29,7 @@ std::optional<std::string> LocalFSFileBundle::key_file() {
Storage::FileHolder LocalFSFileBundle::open(const std::string &name, const Storage::FileMode mode) {
return Storage::FileHolder(base_path_ + name, mode);
}
bool LocalFSFileBundle::erase(const std::string &name) {
return !remove((base_path_ + name).c_str());
}