From 4d26a3ea186eb9d0fedea47ffe6817eeeacf7ed6 Mon Sep 17 00:00:00 2001 From: hansonr Date: Mon, 23 Sep 2019 08:26:22 -0400 Subject: [PATCH] JAL-3436 file...reload not working. File.isDirectory() returns true in SwingJS. --- src/jalview/io/FileParse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/io/FileParse.java b/src/jalview/io/FileParse.java index 13c0f43..f2a797c 100755 --- a/src/jalview/io/FileParse.java +++ b/src/jalview/io/FileParse.java @@ -181,7 +181,7 @@ public class FileParse errormessage = "FILE CANNOT BE OPENED FOR READING"; error = true; } - if (inFile.isDirectory()) + if (!Platform.isJS() && inFile.isDirectory()) { // this is really a 'complex' filetype - but we don't handle directory // reads yet. -- 1.7.10.2