Commit 873e6491 authored by Eric Duminil's avatar Eric Duminil
Browse files

Allow to follow Links

parent 67a57fb0
Pipeline #12024 passed with stage
in 1 minute and 5 seconds
package eu.simstadt.regionchooser; package eu.simstadt.regionchooser;
import java.io.IOException; import java.io.IOException;
import java.nio.file.FileVisitOption;
import java.nio.file.Files; import java.nio.file.Files;
import java.nio.file.Path; import java.nio.file.Path;
import java.time.LocalDate; import java.time.LocalDate;
...@@ -152,7 +153,7 @@ public static CoordinateReferenceSystem crsFromCityGMLHeader(Path citygmlPath) t ...@@ -152,7 +153,7 @@ public static CoordinateReferenceSystem crsFromCityGMLHeader(Path citygmlPath) t
* @throws IOException * @throws IOException
*/ */
public static Stream<Path> everyCityGML(Path repository) throws IOException { public static Stream<Path> everyCityGML(Path repository) throws IOException {
return Files.walk(repository, 2) return Files.walk(repository, 2, FileVisitOption.FOLLOW_LINKS)
.sorted() .sorted()
.filter( .filter(
p -> Files.isRegularFile(p) && p -> Files.isRegularFile(p) &&
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment