summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/UploadDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/UploadDialog.java b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/UploadDialog.java
index 115c8bd..d9ab04f 100644
--- a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/UploadDialog.java
+++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/UploadDialog.java
@@ -101,7 +101,7 @@ public class UploadDialog extends javax.swing.JDialog implements ListSelectionLi
ifile = irodsFS.getIRODSFileForPath(selectedNode.getFullPath());
// rule out "/"
String path = ifile.getAbsolutePath();
- if ((path != null) && (!path.equals("/"))) {
+ if ((ifile.isDirectory()) && (path != null) && (!path.equals("/"))) {
target = path;
}
} catch (IdropException ex) {