- list<cxml::NodePtr> path_children = node->node_children ("Path");
- for (list<cxml::NodePtr>::const_iterator i = path_children.begin(); i != path_children.end(); ++i) {
- _paths.push_back ((*i)->content ());
+ for (auto i: node->node_children("Path")) {
+ _paths.push_back (i->content());
+ auto const mod = i->optional_number_attribute<time_t>("mtime");
+ if (mod) {
+ _last_write_times.push_back (*mod);
+ } else {
+ boost::system::error_code ec;
+ auto last_write = boost::filesystem::last_write_time(i->content(), ec);
+ _last_write_times.push_back (ec ? 0 : last_write);
+ }