diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-10-16 21:05:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-10-16 21:05:24 +0100 |
| commit | eb94fae8de00d63a44d46599cb78a63d7e08edfc (patch) | |
| tree | b6ad6447698b339e586598287f7125129ee73992 /src/lib | |
| parent | e4ac41441d04df6c580b78b039766ea64ded8279 (diff) | |
Ignore analysis folder when looking for DCPs to make KDMs for.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/film.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 085675d07..8c0365e02 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -920,7 +920,11 @@ Film::make_kdm ( string const dir = this->directory (); list<boost::filesystem::path> dcps; for (boost::filesystem::directory_iterator i = boost::filesystem::directory_iterator(dir); i != boost::filesystem::directory_iterator(); ++i) { - if (boost::filesystem::is_directory (*i) && i->path().leaf() != "j2c" && i->path().leaf() != "video" && i->path().leaf() != "info") { + if ( + boost::filesystem::is_directory (*i) && + i->path().leaf() != "j2c" && i->path().leaf() != "video" && i->path().leaf() != "info" && i->path().leaf() != "analysis" + ) { + dcps.push_back (i->path()); } } |
