We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eae9b14 commit 06993efCopy full SHA for 06993ef
fj-doc-playground-quarkus/src/main/java/org/fugerit/java/doc/playground/init/ProjectRest.java
@@ -107,7 +107,7 @@ public static String ensureEndWithSlash( String name ) {
107
}
108
public static void checkIfInTempFolder( File file ) throws IOException {
109
File tempDir = new File( System.getProperty("java.io.tmpdir") );
110
- if ( !file.getCanonicalPath().startsWith( tempDir.getCanonicalPath() ) ) {
+ if ( !file.toPath().normalize().startsWith(tempDir.toPath().normalize()) ) {
111
throw new IOException( file.getCanonicalPath() + " is not in temp folder" );
112
113
0 commit comments