Merge pull request #300 from easybe/tempfile

Make TemporaryFile append a slash to tempDir
This commit is contained in:
Aleksandar Fabijanic 2014-05-21 22:23:30 -05:00
commit 96de8fb909

View File

@ -134,6 +134,10 @@ std::string TemporaryFile::tempName(const std::string& tempDir)
unsigned long n = count++;
mutex.unlock();
name << (tempDir.empty() ? Path::temp() : tempDir);
if (name.str().at(name.str().size() - 1) != Path::separator())
{
name << Path::separator();
}
#if defined(POCO_VXWORKS)
name << "tmp";
#else