Skip to content

Commit 8a29c2f

Browse files
committed
FileHandle: Add constructor accepting an URI
1 parent 299c192 commit 8a29c2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/scijava/io/FileLocation.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ public FileLocation(final String path) {
5252
this(new File(path));
5353
}
5454

55+
public FileLocation(final URI path) {
56+
this(new File(path));
57+
}
58+
5559
// -- FileLocation methods --
5660

5761
/** Gets the associated {@link File}. */

0 commit comments

Comments
 (0)