Skip to content

Commit

Permalink
Fix cloud access
Browse files Browse the repository at this point in the history
By adding cloud schemes to SpatialDataContainer.exists, cloud datasets
pass this test
  • Loading branch information
minnerbe committed Oct 15, 2024
1 parent 13275e6 commit 0304a8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/io/SpatialDataContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,12 @@ public String constructMatchName(final String stDataAName, final String stDataBN

public static boolean exists(String path) {
final URI uri = URI.create(path);
return Cloud.isFile(uri) && new File(path).exists();
if (Cloud.isFile(uri))
return new File(path).exists();
else {
// TODO: this only verifies that the scheme is supported, not that the path actually exists
return Cloud.isGC(uri) || Cloud.isS3(uri);
}
}


Expand Down

0 comments on commit 0304a8b

Please sign in to comment.