diff options
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 7106cc782..6e2a1ad64 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -530,6 +530,13 @@ digest_head_tail (vector<boost::filesystem::path> files, boost::uintmax_t size) } +string +simple_digest (vector<boost::filesystem::path> paths) +{ + return digest_head_tail(paths, 1000000) + raw_convert<string>(boost::filesystem::file_size(paths.front())); +} + + /** Trip an assert if the caller is not in the UI thread */ void ensure_ui_thread () |
