mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-28 23:24:09 +02:00
Add support for paths without trailing separator in TemporaryFile
This commit is contained in:
parent
4923172241
commit
bfa9d0d516
@ -154,6 +154,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