From 769ce034cbb2f95f01dba3d22f7bd554ecb14f3e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 1 Jun 2017 01:26:51 +0100 Subject: Create ZIP files for emails in temporary directories. --- src/lib/cinema_kdms.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3