mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-18 15:33:08 +02:00
Merge pull request #300 from easybe/tempfile
Make TemporaryFile append a slash to tempDir
This commit is contained in:
commit
96de8fb909
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user