diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-11-30 13:57:03 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-11-30 13:57:03 +0000 |
| commit | 8d8ab94c92627f6d023e91f3c8683b4403e422fd (patch) | |
| tree | 9ac0299afa09e370fbe7c6b5d2768d204ce184fe | |
| parent | eaa4e297c91fbc4ae32e5b6b04c1800d42ceed71 (diff) | |
Fix Linux-only mkdir.
| -rw-r--r-- | src/tools/dcpomatic_ecinema.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tools/dcpomatic_ecinema.cc b/src/tools/dcpomatic_ecinema.cc index 6a19e5c42..64874cbef 100644 --- a/src/tools/dcpomatic_ecinema.cc +++ b/src/tools/dcpomatic_ecinema.cc @@ -90,9 +90,8 @@ main (int argc, char* argv[]) boost::filesystem::path input = argv[optind]; boost::filesystem::path output_mp4 = *output / (input.filename().string() + ".ecinema"); - if (mkdir(output->c_str(), 0777) < 0) { - cerr << "Could not create output directory `" << output->string() << "'\n"; - exit (EXIT_FAILURE); + if (!boost::filesystem::is_directory(*output)) { + boost::filesystem::create_directory (*output); } av_register_all (); |
