NazerkeBS commented on code in PR #1239:
URL: https://github.com/apache/solr/pull/1239#discussion_r1048642169
##########
solr/core/src/java/org/apache/solr/core/FileSystemConfigSetService.java:
##########
@@ -238,9 +238,11 @@ public List<String> getAllConfigFiles(String configName)
throws IOException {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes
attrs)
throws IOException {
- // don't include hidden (.) files
- if (!Files.isHidden(file)) {
- filePaths.add(configDir.relativize(file).toString());
+ String filePath = configDir.relativize(file).toString();
+ filePath = filePath.replace('\\', '/'); // normalize slashes
+ // don't include .metadata.json hidden file
+ if (!filePath.startsWith(METADATA_FILE)) {
Review Comment:
ohh it should be definitely `equals`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]