diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-10-05 00:51:09 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-05 00:51:09 +0200 |
| commit | afa092638250c72a92136b0b440bb6bb7c070702 (patch) | |
| tree | bbcfbb05b7e3f53ca70aece49474a94343c58ccd /src/lib/util.cc | |
| parent | 6f23f3ff80fbd73cdaf183ce8bbdeeea0007ad6b (diff) | |
Add contains_assetmap()
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 8 |
1 files changed, 8 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"); +} + |
