* re-reading the entire contents. */
bool cached = false;
- if (metawriter->matched() && metawriter->is_unchanged(&stat_buf)) {
+ if (metawriter->find(path) && metawriter->is_unchanged(&stat_buf)) {
cached = true;
list<ObjectReference> blocks = metawriter->get_blocks();
printf("%s\n", path.c_str());
- metawriter->find(path);
-
file_info["name"] = uri_encode(path);
file_info["mode"] = encode_int(stat_buf.st_mode & 07777, 8);
file_info["ctime"] = encode_int(stat_buf.st_ctime);