summaryrefslogtreecommitdiff
path: root/src/dcp.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-07-10 16:03:05 +0100
committerCarl Hetherington <cth@carlh.net>2014-07-10 16:03:05 +0100
commit1045480655c09c6fdf0d81f5d9714cb218933c19 (patch)
treea1781706a1d821c2cb8faea53d209b7cab66f77b /src/dcp.cc
parent4a146d39f54fb5a6261ca6fd7bdf96cfde0bad51 (diff)
Restore creation of DCP directories in the constructor.
Diffstat (limited to 'src/dcp.cc')
-rw-r--r--src/dcp.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index c39694a9..c92a14b8 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -63,6 +63,10 @@ using namespace dcp;
DCP::DCP (boost::filesystem::path directory)
: _directory (directory)
{
+ if (!boost::filesystem::exists (directory)) {
+ boost::filesystem::create_directories (directory);
+ }
+
_directory = boost::filesystem::canonical (_directory);
}