MCPcopy Create free account
hub / github.com/dirkvranckaert/AndroidDecompiler / getCurrentDirectory

Method getCurrentDirectory

astyle/src/astyle_main.cpp:817–824  ·  view source on GitHub ↗

* WINDOWS function to get the current directory. * NOTE: getenv("CD") does not work for Windows Vista. * The Windows function GetCurrentDirectory is used instead. * * @return The path of the current directory */

Source from the content-addressed store, hash-verified

815 * @return The path of the current directory
816 */
817string ASConsole::getCurrentDirectory(const string &fileName_) const
818{
819 char currdir[MAX_PATH];
820 currdir[0] = '\0';
821 if (!GetCurrentDirectory(sizeof(currdir), currdir))
822 error("Cannot find file", fileName_.c_str());
823 return string(currdir);
824}
825
826/**
827 * WINDOWS function to resolve wildcards and recurse into sub directories.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected