implemented deletion of project files and dirs

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-10-02 00:42:01 +02:00
parent 326363f162
commit 7284637057
2 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,6 @@ import de.srsoftware.umbrella.core.model.Company;
import de.srsoftware.umbrella.core.model.Project;
import de.srsoftware.umbrella.core.model.Token;
import de.srsoftware.umbrella.core.model.UmbrellaUser;
import java.io.*;
import java.net.URLDecoder;
import java.nio.file.Files;
@@ -136,6 +135,7 @@ public class FileModule extends BaseHandler implements FileService {
if (!dropDir(file)) return sendContent(ex,HTTP_SERVER_ERROR,format("Failed to delete {0}",file.getName()));
Map<String,Object> map = getDirectory(file.getParentFile());
map.put("title",file.getName());
map.put("delete",true);
return sendContent(ex,map);
}