diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/util.cc | 8 | ||||
| -rw-r--r-- | src/lib/util.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index cfeacdb92..609e92850 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -1187,3 +1187,11 @@ error_details(boost::system::error_code ec) { return String::compose("%1:%2:%3", ec.category().name(), ec.value(), ec.message()); } + + +bool +contains_assetmap(boost::filesystem::path dir) +{ + return boost::filesystem::is_regular_file(dir / "ASSETMAP") || boost::filesystem::is_regular_file(dir / "ASSETMAP.xml"); +} + diff --git a/src/lib/util.h b/src/lib/util.h index c62b98df6..acdc861ae 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -127,6 +127,7 @@ extern std::string to_upper (std::string s); extern void start_of_thread (std::string name); extern void capture_asdcp_logs (); extern std::string error_details(boost::system::error_code ec); +extern bool contains_assetmap(boost::filesystem::path dir); template <class T> std::list<T> |
