MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / getMetadata

Method getMetadata

lib/vfs/microdos.cc:115–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 }
114
115 std::map<std::string, std::string> getMetadata() override
116 {
117 mount();
118
119 std::map<std::string, std::string> attributes;
120
121 attributes[VOLUME_NAME] = _volumeLabel;
122 attributes[TOTAL_BLOCKS] = std::to_string(_totalBlocks);
123 attributes[USED_BLOCKS] = std::to_string(_usedBlocks);
124 attributes[BLOCK_SIZE] = "512";
125 return attributes;
126 }
127
128 std::shared_ptr<Dirent> getDirent(const Path& path) override
129 {

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected