diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2025-02-28 01:43:47 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2025-02-28 01:43:47 -0500 |
commit | ba15622a751b8e67b8b62d512ad713bc408f090d (patch) | |
tree | e95173c3bc59e4e16fe42511b9cc1fd521661642 /src/filecache.cpp | |
parent | a7d1d6b3d9de726d303e3c98c8b43441faa1e060 (diff) | |
download | abaddon-portaudio-ba15622a751b8e67b8b62d512ad713bc408f090d.tar.gz abaddon-portaudio-ba15622a751b8e67b8b62d512ad713bc408f090d.zip |
try and resolve file name conflicts
Diffstat (limited to 'src/filecache.cpp')
-rw-r--r-- | src/filecache.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/filecache.cpp b/src/filecache.cpp index a107714..66787e1 100644 --- a/src/filecache.cpp +++ b/src/filecache.cpp @@ -12,7 +12,10 @@ std::string GetCachedName(const std::string &str) { } Cache::Cache() { - m_tmp_path = std::filesystem::temp_directory_path() / "abaddon-cache"; + gchar *rand = g_uuid_string_random(); + std::string randstr = rand; + g_free(rand); + m_tmp_path = std::filesystem::temp_directory_path() / ("abaddon-cache-" + randstr); std::filesystem::create_directories(m_tmp_path); m_worker.set_file_path(m_tmp_path); } |