Skip to content

Commit 7492439

Browse files
committed
fix(check): resolve sourceDir to real path before walking to handle .. segments
1 parent 1eee8e4 commit 7492439

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

com.avaloq.tools.ddk.check.core/src/com/avaloq/tools/ddk/check/standalone/CheckDocApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public Object start(final IApplicationContext context) throws IOException {
5353
System.err.println("Usage: -application com.avaloq.tools.ddk.check.core.docApplication <sourceDir> <docsDir>");
5454
return 1;
5555
}
56-
Path sourceDir = Path.of(args[0]);
56+
Path sourceDir = Path.of(args[0]).toRealPath();
5757
Path docsDir = Path.of(args[1]);
5858
Path contentDir = docsDir.resolve("content");
5959
Files.createDirectories(contentDir);

0 commit comments

Comments
 (0)