projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9df90fa
)
Create ZIP files for emails in temporary directories.
author
Carl Hetherington
<cth@carlh.net>
Thu, 1 Jun 2017 00:26:51 +0000
(
01:26
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 1 Jun 2017 00:26:51 +0000
(
01:26
+0100)
src/lib/cinema_kdms.cc
patch
|
blob
|
history
diff --git
a/src/lib/cinema_kdms.cc
b/src/lib/cinema_kdms.cc
index 1ec8546201895d0c5f247492a887960446c87e10..2b6a51e4179a95ac3d0b3727cdcdd641be96963b 100644
(file)
--- 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);