summaryrefslogtreecommitdiff
path: root/src/lib/content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-24 10:32:52 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-24 10:32:52 +0100
commit49a51ff9778f3b72ee962d3e8bd9cf71944f3c2b (patch)
tree2b916b15eabd8132bbc80b00e4a4f09edfd9eb92 /src/lib/content.h
parent084d5155d410eef68f87635876e136b224db91dc (diff)
Rename Content::_file to path and support md5sums of directories.
Diffstat (limited to 'src/lib/content.h')
-rw-r--r--src/lib/content.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/content.h b/src/lib/content.h
index 33af0a624..78b80e254 100644
--- a/src/lib/content.h
+++ b/src/lib/content.h
@@ -59,12 +59,12 @@ public:
boost::shared_ptr<Content> clone () const;
- boost::filesystem::path file () const {
+ boost::filesystem::path path () const {
boost::mutex::scoped_lock lm (_mutex);
- return _file;
+ return _path;
}
- /** @return MD5 digest of the content's file */
+ /** @return MD5 digest of the content's file(s) */
std::string digest () const {
boost::mutex::scoped_lock lm (_mutex);
return _digest;
@@ -94,7 +94,8 @@ protected:
mutable boost::mutex _mutex;
private:
- boost::filesystem::path _file;
+ /** Path of a file or a directory containing files */
+ boost::filesystem::path _path;
std::string _digest;
Time _start;
bool _change_signals_frequent;