MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / Mkdir

Method Mkdir

src/filesystem/ramfs/ramfs.cpp:252–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252auto RamFs::RamFsInodeOps::Mkdir(Inode* dir, const char* name)
253 -> Expected<Inode*> {
254 // 复用 Create,但指定类型为目录
255 return Create(dir, name, FileType::kDirectory);
256}
257
258auto RamFs::RamFsInodeOps::Rmdir(Inode* dir, const char* name)
259 -> Expected<void> {

Callers 2

MkDirFunction · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.36