mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-02 15:41:36 +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++;
|
unsigned long n = count++;
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
name << (tempDir.empty() ? Path::temp() : tempDir);
|
name << (tempDir.empty() ? Path::temp() : tempDir);
|
||||||
|
if (name.str().at(name.str().size() - 1) != Path::separator())
|
||||||
|
{
|
||||||
|
name << Path::separator();
|
||||||
|
}
|
||||||
#if defined(POCO_VXWORKS)
|
#if defined(POCO_VXWORKS)
|
||||||
name << "tmp";
|
name << "tmp";
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user