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

Function dir_current

LASzip/src/mydefs.cpp:385–393  ·  view source on GitHub ↗

get the current directory (exclude trailing delimiter)

Source from the content-addressed store, hash-verified

383/// get the current directory (exclude trailing delimiter)
384/// </summary>
385std::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.

Callers

nothing calls this directly

Calls 1

stringFunction · 0.85

Tested by

no test coverage detected