Previously, if there was an error processing the file, the metadata
dictionary was not output, but the filename was, producing an incorrect
metadata file. This is now fixed.
printf("%s\n", path.c_str());
- metadata << "name: " << uri_encode(path) << "\n";
-
file_info["mode"] = encode_int(stat_buf.st_mode & 07777);
file_info["mtime"] = encode_int(stat_buf.st_mtime);
file_info["user"] = encode_int(stat_buf.st_uid);
file_info["type"] = string(1, inode_type);
+ metadata << "name: " << uri_encode(path) << "\n";
dict_output(metadata, file_info);
metadata << "\n";