MCPcopy Create free account
hub / github.com/bytedance/bolt / remove

Method remove

bolt/common/file/FileSystems.cpp:195–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193#endif
194
195 void remove(std::string_view path) override {
196 auto file = extractPath(path);
197 int32_t rc = std::remove(std::string(file).c_str());
198 if (rc < 0 && std::filesystem::exists(file)) {
199 BOLT_USER_FAIL(
200 "Failed to delete file {} with errno {}", file, strerror(errno));
201 }
202 VLOG(1) << "LocalFileSystem::remove " << path;
203 }
204
205 void rename(
206 std::string_view oldPath,

Callers 2

TESTFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36