Skip to content

Commit

Permalink
Merge pull request #236 from morphonets/fix-save-swc
Browse files Browse the repository at this point in the history
Fix SWC saving from API
  • Loading branch information
tferr authored Aug 20, 2024
2 parents 38bfbb4 + 9d40c78 commit f4eede2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/sc/fiji/snt/Tree.java
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ private static File getFile(final String filename, final boolean checkIfAvailabl
f = new File(filename.replaceFirst("^~", System.getProperty("user.home")));
else
f = new File(filename);
if (!SNTUtils.fileAvailable(f))
if (checkIfAvailable && !SNTUtils.fileAvailable(f))
throw new IllegalArgumentException("File is not available: " + filename);
return f;
}
Expand Down

0 comments on commit f4eede2

Please sign in to comment.