diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-04 23:24:59 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-05 23:52:14 +0100 |
| commit | ab766096598188759d29829043bf28e63379b730 (patch) | |
| tree | 1fb8fb9eb22c275834db2671395e7b3558e7aac4 /src/lib/util.cc | |
| parent | 2719964f89431a0598ef617326158309afe5ba43 (diff) | |
Replace Content::paths_valid() with a free utility function.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index bcb39c482..df15e1abb 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -1226,3 +1226,9 @@ rfc_2822_date(time_t time) } +bool +paths_exist(vector<boost::filesystem::path> const& paths) +{ + return std::all_of(paths.begin(), paths.end(), [](boost::filesystem::path const& path) { return dcp::filesystem::exists(path); }); +} + |
