Skip to content

Commit 6998c98

Browse files
author
Christopher Raquet
committed
Fix path exceptions for windows in crate reader
1 parent 7d5a997 commit 6998c98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/edu/kit/datamanager/ro_crate/reader/RoCrateReader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ public RoCrate readCrate(String location) {
127127
}
128128

129129
protected File checkFolderHasFile(String id, File file) {
130+
if (isUrl(id)) return null;
130131
Path path = file.toPath().resolve(decode(id).get());
131132
if (path.toFile().exists()) {
132133
return path.toFile();

0 commit comments

Comments
 (0)