diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-10 16:03:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-10 16:03:05 +0100 |
| commit | 1045480655c09c6fdf0d81f5d9714cb218933c19 (patch) | |
| tree | a1781706a1d821c2cb8faea53d209b7cab66f77b /src/dcp.cc | |
| parent | 4a146d39f54fb5a6261ca6fd7bdf96cfde0bad51 (diff) | |
Restore creation of DCP directories in the constructor.
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } |
