get the current directory (exclude trailing delimiter)
| 383 | /// get the current directory (exclude trailing delimiter) |
| 384 | /// </summary> |
| 385 | std::string dir_current() { |
| 386 | char curr_directory[MAX_PATH_LAS]; |
| 387 | #ifdef _WIN32 |
| 388 | GetCurrentDirectory(MAX_PATH_LAS, curr_directory); |
| 389 | #else |
| 390 | getcwd(curr_directory, MAX_PATH_LAS); |
| 391 | #endif |
| 392 | return std::string(curr_directory); |
| 393 | } |
| 394 | |
| 395 | /// <summary> |
| 396 | /// get the temp path include trailing delimiter. system default or temp_user. |