diff options
Diffstat (limited to 'dozentenmodul/src/main/java/ftp/DownloadTask.java')
| -rw-r--r-- | dozentenmodul/src/main/java/ftp/DownloadTask.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/ftp/DownloadTask.java b/dozentenmodul/src/main/java/ftp/DownloadTask.java index f040e20d..eee607be 100644 --- a/dozentenmodul/src/main/java/ftp/DownloadTask.java +++ b/dozentenmodul/src/main/java/ftp/DownloadTask.java @@ -175,7 +175,7 @@ public class DownloadTask extends SwingWorker<Void, Void> { // build filename for the vmx, basicly the same as the path of the vmdk // just without the leading "prod/" and "vmx" instead of "vmdk" at the end. - String targetFilename = Config.getLastDownloadPath() + File.separator + + String targetFilename = saveDir + File.separator + imageData.get("path").replaceFirst("^prod/", "").replaceFirst("\\.vmdk$", "") + ".vmx"; try { // try to write it to file |
