src/FilesystemCommand.h
branchv_0
changeset 16 6180161335be
parent 9 b4f29fb16159
child 24 4353cd19a6b5
equal deleted inserted replaced
15:e7f05d7c4336 16:6180161335be
    80 			AttributeFinder* finder = attributeFinders[field.group];
    80 			AttributeFinder* finder = attributeFinders[field.group];
    81 			if (finder) for (AttributeMetadata m : finder->toMetadata(field)) attributesMetadata.push_back(m);
    81 			if (finder) for (AttributeMetadata m : finder->toMetadata(field)) attributesMetadata.push_back(m);
    82 			else throw RelpipeWriterException(L"Unsupported field group: " + field.group);
    82 			else throw RelpipeWriterException(L"Unsupported field group: " + field.group);
    83 		}
    83 		}
    84 
    84 
    85 		writer->startRelation(L"filesystem", attributesMetadata, true);
    85 		string_t relationName = configuration.relation.empty() ? L"filesystem" : configuration.relation;
       
    86 		writer->startRelation(relationName, attributesMetadata, true);
    86 
    87 
    87 
    88 
    88 		for (std::stringstream originalName; readNext(input, originalName); reset(originalName)) {
    89 		for (std::stringstream originalName; readNext(input, originalName); reset(originalName)) {
    89 			fs::path file(originalName.str().empty() ? "." : originalName.str()); // interpret empty string as current directory (e.g. result of: find -printf '%P\0')
    90 			fs::path file(originalName.str().empty() ? "." : originalName.str()); // interpret empty string as current directory (e.g. result of: find -printf '%P\0')
    90 			bool exists = false;
    91 			bool exists = false;