get the current directory (exclude trailing delimiter)
| 387 | /// get the current directory (exclude trailing delimiter) |
| 388 | /// </summary> |
| 389 | std::string dir_current() { |
| 390 | char curr_directory[MAX_PATH_LAS]; |
| 391 | #ifdef _WIN32 |
| 392 | GetCurrentDirectory(MAX_PATH_LAS, curr_directory); |
| 393 | #else |
| 394 | getcwd(curr_directory, MAX_PATH_LAS); |
| 395 | #endif |
| 396 | return std::string(curr_directory); |
| 397 | } |
| 398 | |
| 399 | /// <summary> |
| 400 | /// get the temp path include trailing delimiter. system default or temp_user. |
nothing calls this directly
no outgoing calls
no test coverage detected