Commit db43b73f authored by Lulu Luong's avatar Lulu Luong
Browse files

added subfolder

parent a4f363e1
Pipeline #28430 passed with stages
in 2 minutes and 57 seconds
......@@ -4,6 +4,7 @@ import edu.kit.iti.formal.psdbg.gui.controller.DebuggerMain;
import edu.kit.iti.formal.psdbg.gui.model.MainScriptIdentifier;
import lombok.*;
......@@ -25,10 +26,11 @@ public abstract class Example {
public static File newTempFile(URL url, String filename) throws IOException {
//TODO: add unterordner
File psdbg = new File(FileUtils.getTempDirectoryPath(), "psdbg");
File examplefolder = new File(psdbg.getPath(), FilenameUtils.removeExtension(filename));
File f = new File(psdbg, filename);
File f = new File(examplefolder, filename);
FileUtils.copyURLToFile(url, f);
return f;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment