diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-31 10:29:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-31 10:29:06 +0100 |
| commit | 75ca9a37fc0567357ff737e7cc43bfcc19237501 (patch) | |
| tree | cea30d6db82e80ffc786f5ab6b4474df37ebb651 /src/lib | |
| parent | eafe3c85d25d2fef36996c3c531c17e183c95678 (diff) | |
Try to create directory for .dvdomatic if it doesn't exist.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/config.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index 8c65e371a..7d8e82335 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -122,6 +122,8 @@ Config::file () const { boost::filesystem::path p; p /= g_get_user_config_dir (); + boost::system::error_code ec; + boost::filesystem::create_directory (p, ec); p /= N_(".dvdomatic"); return p.string (); } |
