| 250 | */ |
| 251 | |
| 252 | void cUnixFSServices::GetCurrentDir(TSTRING& strCurDir) const |
| 253 | { |
| 254 | TCHAR pathname[iFSServices::TW_MAX_PATH]; |
| 255 | pathname[0] = '\0'; |
| 256 | TCHAR* ret = getcwd(pathname, sizeof(TCHAR) * iFSServices::TW_MAX_PATH); |
| 257 | |
| 258 | if (ret == NULL) |
| 259 | throw eFSServicesGeneric(strCurDir, iFSServices::GetInstance()->GetErrString()); |
| 260 | |
| 261 | strCurDir = pathname; |
| 262 | } |
| 263 | |
| 264 | |
| 265 | TSTRING& cUnixFSServices::MakeTempFilename(TSTRING& strName) const |