MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / addFileNode

Method addFileNode

source/io/fs.cpp:235–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235std::shared_ptr<FsFileNode> Fs::addFileNode(const BString& path, const BString& link, const BString& nativePath, bool isDirectory, const std::shared_ptr<FsNode>& parent) {
236 std::shared_ptr<FsFileNode> result = std::make_shared<FsFileNode>(Fs::nextNodeId++, 0, path, link, nativePath, isDirectory, false, parent);
237 parent->addChild(result);
238 return result;
239}
240
241std::shared_ptr<FsNode> Fs::addRootDirectoryNode(const BString& path, const BString& nativePath, const std::shared_ptr<FsNode>& parent) {
242 std::shared_ptr<FsFileNode> result = std::make_shared<FsFileNode>(Fs::nextNodeId++, 0, path, B(""), nativePath, true, false, parent);

Callers

nothing calls this directly

Calls 1

addChildMethod · 0.80

Tested by

no test coverage detected