MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getCurrentFileDir

Method getCurrentFileDir

src/tools/ecode/ecode.cpp:1426–1437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1424}
1425
1426std::string App::getCurrentFileDir() const {
1427 if ( mSplitter && mSplitter->curEditorIsNotNull() && mSplitter->curEditorExists() &&
1428 mSplitter->getCurEditor()->hasDocument() &&
1429 mSplitter->getCurEditor()->getDocument().hasFilepath() ) {
1430 return mSplitter->getCurEditor()->getDocument().getFileInfo().getDirectoryPath();
1431 }
1432
1433 if ( !mCurrentProject.empty() && mCurrentProject != mPlaygroundPath )
1434 return mCurrentProject;
1435
1436 return "";
1437}
1438
1439std::vector<std::pair<String::StringBaseType, String::StringBaseType>>
1440App::makeAutoClosePairs( const std::string& strPairs ) {

Callers 1

getSelectedWorkingDirMethod · 0.80

Calls 8

curEditorIsNotNullMethod · 0.80
curEditorExistsMethod · 0.80
getCurEditorMethod · 0.80
hasFilepathMethod · 0.80
getDocumentMethod · 0.80
getDirectoryPathMethod · 0.80
hasDocumentMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected