MCPcopy Create free account
hub / github.com/bluescan/tacentview / GetFilesNeedingOverwrite

Method GetFilesNeedingOverwrite

Src/OpenSaveDialogs.cpp:889–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

887
888
889void Viewer::GetFilesNeedingOverwrite(const tString& destDir, tList<tStringItem>& overwriteFiles, const tString& extension)
890{
891 for (Image* image = Images.First(); image; image = image->Next())
892 {
893 tString baseName = tSystem::tGetFileBaseName(image->Filename);
894 tString outFile = destDir + tString(baseName) + extension;
895
896 // Only add unique items to the list.
897 if (tSystem::tFileExists(outFile) && !overwriteFiles.Contains(outFile))
898 overwriteFiles.Append(new tStringItem(outFile));
899 }
900}
901
902
903void Viewer::DoOverwriteMultipleFilesModal(const tList<tStringItem>& overwriteFiles, bool& pressedOK, bool& pressedCancel)

Callers

nothing calls this directly

Calls 1

ContainsMethod · 0.45

Tested by

no test coverage detected