* 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 */
| 815 | * @return The path of the current directory |
| 816 | */ |
| 817 | string 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. |
nothing calls this directly
no outgoing calls
no test coverage detected