|
|
@ -217,7 +217,7 @@ public class FileUtils { |
|
|
|
public static Path getPath(Path path, String first, String... more) throws IOException { |
|
|
|
public static Path getPath(Path path, String first, String... more) throws IOException { |
|
|
|
URI uri = path.toUri(); |
|
|
|
URI uri = path.toUri(); |
|
|
|
if (isJarFile(path)) { |
|
|
|
if (isJarFile(path)) { |
|
|
|
String pathString = path.toString(); |
|
|
|
String pathString = path.toAbsolutePath().toString(); |
|
|
|
// transformation for Windows OS
|
|
|
|
// transformation for Windows OS
|
|
|
|
pathString = StringUtils.addStart(pathString.replace("\\", "/"), "/"); |
|
|
|
pathString = StringUtils.addStart(pathString.replace("\\", "/"), "/"); |
|
|
|
// space is replaced with %20
|
|
|
|
// space is replaced with %20
|
|
|
|