MCPcopy Create free account
hub / github.com/apache/arrow / SetName

Method SetName

cpp/src/arrow/filesystem/mockfs.cc:174–181  ·  view source on GitHub ↗

Set the entry name

Source from the content-addressed store, hash-verified

172
173 // Set the entry name
174 void SetName(const std::string& name) {
175 if (is_dir()) {
176 as_dir().name = name;
177 } else {
178 DCHECK(is_file());
179 as_file().name = name;
180 }
181 }
182
183 private:
184 ARROW_DISALLOW_COPY_AND_ASSIGN(Entry);

Callers 2

MoveMethod · 0.80
CopyFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected