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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user