MCPcopy Create free account
hub / github.com/ElementsProject/elements / DeleteFile

Method DeleteFile

src/leveldb/util/env_posix.cc:603–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601 }
602
603 Status DeleteFile(const std::string& filename) override {
604 if (::unlink(filename.c_str()) != 0) {
605 return PosixError(filename, errno);
606 }
607 return Status::OK();
608 }
609
610 Status CreateDir(const std::string& dirname) override {
611 if (::mkdir(dirname.c_str(), 0755) != 0) {

Callers 9

DeleteFileFunction · 0.45
BenchmarkMethod · 0.45
BenchmarkMethod · 0.45
HeapProfileMethod · 0.45
BenchmarkMethod · 0.45
DoWriteStringToFileFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls 2

PosixErrorFunction · 0.85
OKFunction · 0.85

Tested by 3

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36