diff -r 35607c973cf5 -r 8d73bff730a7 src/FilesystemCommand.h --- a/src/FilesystemCommand.h Wed Jan 16 18:01:49 2019 +0100 +++ b/src/FilesystemCommand.h Wed Jan 16 18:16:07 2019 +0100 @@ -101,13 +101,14 @@ for (RequestedField field : configuration.fields) { AttributeFinder* finder = attributeFinders[field.group]; // should not be nullptr, because already checked while writing the relation metadata + // TODO: links to non-existent files are currently treated as non-existent files → we still can return the type and symlink_target values if (exists || (field.group == RequestedField::GROUP_FILE && field.name == FileAttributeFinder::FIELD_PATH_ORIGINAL)) { finder->writeField(writer.get(), field); } else { finder->writeEmptyField(writer.get(), field); } } - + for (auto& finder : attributeFinders) finder.second->endFile(); } }