From: Carl Hetherington Date: Thu, 1 Jun 2017 00:26:51 +0000 (+0100) Subject: Create ZIP files for emails in temporary directories. X-Git-Tag: v2.11.10~7 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=769ce034cbb2f95f01dba3d22f7bd554ecb14f3e Create ZIP files for emails in temporary directories. --- diff --git a/src/lib/cinema_kdms.cc b/src/lib/cinema_kdms.cc index 1ec854620..2b6a51e41 100644 --- a/src/lib/cinema_kdms.cc +++ b/src/lib/cinema_kdms.cc @@ -208,7 +208,8 @@ CinemaKDMs::email ( name_values['c'] = i.cinema->name; - boost::filesystem::path zip_file = boost::filesystem::temp_directory_path(); + boost::filesystem::path zip_file = boost::filesystem::temp_directory_path() / boost::filesystem::unique_path(); + boost::filesystem::create_directories (zip_file); zip_file /= container_name_format.get(name_values, ".zip"); i.make_zip_file (zip_file, filename_format, name_values);