MCPcopy Create free account
hub / github.com/LASzip/LASzip / dir_current

Function dir_current

src/mydefs.cpp:389–397  ·  view source on GitHub ↗

get the current directory (exclude trailing delimiter)

Source from the content-addressed store, hash-verified

387/// get the current directory (exclude trailing delimiter)
388/// </summary>
389std::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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected