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

Method CreateDir

src/leveldb/util/env_posix.cc:610–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

608 }
609
610 Status CreateDir(const std::string& dirname) override {
611 if (::mkdir(dirname.c_str(), 0755) != 0) {
612 return PosixError(dirname, errno);
613 }
614 return Status::OK();
615 }
616
617 Status DeleteDir(const std::string& dirname) override {
618 if (::rmdir(dirname.c_str()) != 0) {

Callers 5

CreateDirFunction · 0.45
TESTFunction · 0.45
SanitizeOptionsFunction · 0.45
RecoverMethod · 0.45
ArchiveFileMethod · 0.45

Calls 2

PosixErrorFunction · 0.85
OKFunction · 0.85

Tested by 1

TESTFunction · 0.36