in src/xalanc/Harness/XalanFileUtility.cpp [540:572]
void XalanFileUtility::checkAndCreateDir(const XalanDOMString& directory)
{
char buffer[PATH_MAX];
getcwd(buffer, PATH_MAX);
TranscodeToLocalCodePage(directory, m_buffer, true);
const char* const theDir = &*m_buffer.begin();
assert(theDir != 0);
if (chdir(theDir))
{
//cout << "Couldn't change to " << directory << ", will create it." << endl;
#if defined(XALAN_WINDOWS_DIR_FUNCTIONS)
if (!mkdir(theDir))
#else
if (!mkdir(theDir, DIR_MODE_BITS))
#endif
{
if (m_verbose == true)
{
cout << theDir << " created." << endl;
}
}
else
{
cout << theDir << " NOT created." << endl;
}
}
chdir(buffer);
}