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

Method Delete

src/gui/filesystemmodel.cc:224–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 }
223
224 void Delete(const Path& path) override
225 {
226 auto parent = Find(path.parent());
227 if (!parent)
228 return;
229
230 auto child = Find(path);
231 if (!child)
232 return;
233
234 Clear(path);
235 _byItem.erase(child->item);
236 parent->children.erase(child->dirent->filename);
237 ItemDeleted(parent->item, child->item);
238 }
239
240 void RemoveStub(const Path& path) override
241 {

Callers 3

ActuallyMoveFileMethod · 0.80

Calls 2

parentMethod · 0.80
eraseMethod · 0.45

Tested by

no test coverage detected