diff options
author | Jonathan Bauer | 2014-09-12 17:03:36 +0200 |
---|---|---|
committer | Jonathan Bauer | 2014-09-12 17:03:36 +0200 |
commit | 42e596e5cf67dcfada273600f61ee1c5bcfb933e (patch) | |
tree | e802e5ec1a325f16c8d83e193171e5dbb4691a8e /dozentenmodul/src/main/java | |
parent | better error message if client cannot get the list of OSs from server (diff) | |
download | tutor-module-42e596e5cf67dcfada273600f61ee1c5bcfb933e.tar.gz tutor-module-42e596e5cf67dcfada273600f61ee1c5bcfb933e.tar.xz tutor-module-42e596e5cf67dcfada273600f61ee1c5bcfb933e.zip |
fix dir not beeing created in the other class
Diffstat (limited to 'dozentenmodul/src/main/java')
-rw-r--r-- | dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java b/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java index 2a1d75bb..19d7f2b6 100644 --- a/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java +++ b/dozentenmodul/src/main/java/gui/image/FTPEditDownloader_GUI.java @@ -162,6 +162,8 @@ public class FTPEditDownloader_GUI extends JFrame implements // check if directory is selected if (dir != null) { // is selected + // create dir if it does not exists. + if (!dir.exists()) dir.mkdirs(); lblPath.setText(dir.getAbsolutePath()); } else { // no directory selected |