MCPcopy Create free account
hub / github.com/WinMerge/winmerge / getFilepath

Method getFilepath

Src/DiffItem.cpp:22–29  ·  view source on GitHub ↗

@brief Return path to left/right file, including all but file name */

Source from the content-addressed store, hash-verified

20
21/** @brief Return path to left/right file, including all but file name */
22String DIFFITEM::getFilepath(int nIndex, const String &sRoot) const
23{
24 if (diffcode.exists(nIndex))
25 {
26 return paths::ConcatPath(sRoot, diffFileInfo[nIndex].path);
27 }
28 return _T("");
29}
30
31/** @brief Return the relative path to file/folder including the item name*/
32String DIFFITEM::getItemRelativePath() const

Callers 5

ColStatusGetFunction · 0.80
EnumMethod · 0.80
UpdateVersionMethod · 0.80
OnToolsGeneratePatchMethod · 0.80

Calls 2

ConcatPathFunction · 0.85
existsMethod · 0.45

Tested by

no test coverage detected