| 488 | } |
| 489 | |
| 490 | CString CTGitPath::GetFileExtension() const |
| 491 | { |
| 492 | if(!IsDirectory()) |
| 493 | { |
| 494 | EnsureBackslashPathSet(); |
| 495 | const int dotPos = m_sBackslashPath.ReverseFind('.'); |
| 496 | const int slashPos = m_sBackslashPath.ReverseFind('\\'); |
| 497 | if (dotPos > slashPos) |
| 498 | return m_sBackslashPath.Mid(dotPos); |
| 499 | } |
| 500 | return CString(); |
| 501 | } |
| 502 | CString CTGitPath::GetBaseFilename() const |
| 503 | { |
| 504 | CString filename=GetFilename(); |