private long length;
private String hash;
public MetadataFile(BMap file) throws IOException {
if (file.get("path") != null) {
final BList path = file.getList("path");
final StringBuilder builder = new StringBuilder();
for (final Object pathPart : path) {
builder.append(new String((byte[]) pathPart)).append("/");
}
this.fileName = builder.substring(0, builder.length() - 1);