20 #ifndef NDBT_WORKINGDIR_HPP
21 #define NDBT_WORKINGDIR_HPP
24 #include <BaseString.hpp>
25 #include <NdbProcess.hpp>
35 const char* tmp_path = m_temp.path();
36 char* ndbt_tmp = getenv(
"NDBT_TMP_DIR");
41 m_wd.
assfmt(
"%s%s%s%d", tmp_path, DIR_SEPARATOR, dirname,
42 (
int)NdbProcess::getpid());
43 if (access(m_wd.
c_str(), F_OK) == 0)
44 NdbDir::remove_recursive(m_wd.
c_str());
45 if (!NdbDir::create(m_wd.
c_str()))
51 if (access(m_wd.
c_str(), F_OK) == 0)
52 NdbDir::remove_recursive(m_wd.
c_str());
55 const char* path(
void)
const