diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-06-01 01:26:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-06-01 01:26:51 +0100 |
| commit | 769ce034cbb2f95f01dba3d22f7bd554ecb14f3e (patch) | |
| tree | fd11f6f0a3c116ebc3fe29464d971f911256f9bb | |
| parent | 9df90fa5776dc4e96157de844c632f8b84c78cb3 (diff) | |
Create ZIP files for emails in temporary directories.
| -rw-r--r-- | src/lib/cinema_kdms.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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); |
