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

Method ActuallyMoveFile

src/gui/browserpanel.cc:519–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517 }
518
519 void ActuallyMoveFile(const Path& oldPath, Path newPath)
520 {
521 QueueJob(
522 [this, oldPath, newPath]() mutable
523 {
524 newPath = ResolveFileConflicts_WT(newPath);
525 if (newPath.empty())
526 return;
527
528 _filesystem->moveFile(oldPath, newPath);
529
530 auto dirent = _filesystem->getDirent(newPath);
531 runOnUiThread(
532 [&]()
533 {
534 _filesystemModel->Delete(oldPath);
535 _filesystemModel->Add(dirent);
536 UpdateFilesystemData();
537 });
538 });
539 }
540
541 void OnBrowserNewDirectoryMenuItem(wxCommandEvent& event) override
542 {

Callers

nothing calls this directly

Calls 6

DeleteMethod · 0.80
AddMethod · 0.80
runOnUiThreadFunction · 0.70
emptyMethod · 0.45
moveFileMethod · 0.45
getDirentMethod · 0.45

Tested by

no test coverage detected