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

Method getCurrentWorkingDir

src/tools/ecode/ecode.cpp:1413–1424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1411}
1412
1413std::string App::getCurrentWorkingDir() const {
1414 if ( !mCurrentProject.empty() && mCurrentProject != mPlaygroundPath )
1415 return mCurrentProject;
1416
1417 if ( mSplitter && mSplitter->curEditorIsNotNull() && mSplitter->curEditorExists() &&
1418 mSplitter->getCurEditor()->hasDocument() &&
1419 mSplitter->getCurEditor()->getDocument().hasFilepath() ) {
1420 return mSplitter->getCurEditor()->getDocument().getFileInfo().getDirectoryPath();
1421 }
1422
1423 return "";
1424}
1425
1426std::string App::getCurrentFileDir() const {
1427 if ( mSplitter && mSplitter->curEditorIsNotNull() && mSplitter->curEditorExists() &&

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
emptyMethod · 0.45
hasDocumentMethod · 0.45

Tested by

no test coverage detected