From 1045480655c09c6fdf0d81f5d9714cb218933c19 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 10 Jul 2014 16:03:05 +0100 Subject: Restore creation of DCP directories in the constructor. --- src/dcp.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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); } -- cgit v1.2.3