src/FilesystemCommand.h
branchv_0
changeset 16 6180161335be
parent 9 b4f29fb16159
child 24 4353cd19a6b5
--- a/src/FilesystemCommand.h	Sat Jan 19 21:16:39 2019 +0100
+++ b/src/FilesystemCommand.h	Sat Jan 19 21:21:26 2019 +0100
@@ -82,7 +82,8 @@
 			else throw RelpipeWriterException(L"Unsupported field group: " + field.group);
 		}
 
-		writer->startRelation(L"filesystem", attributesMetadata, true);
+		string_t relationName = configuration.relation.empty() ? L"filesystem" : configuration.relation;
+		writer->startRelation(relationName, attributesMetadata, true);
 
 
 		for (std::stringstream originalName; readNext(input, originalName); reset(originalName)) {