Skip to content
Snippets Groups Projects
Verified Commit e03c97f3 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: versioning

parent 6a71911b
No related branches found
No related tags found
No related merge requests found
......@@ -165,8 +165,11 @@ public class ServerSideScriptingCaller {
if (f.getPath() == null || f.getPath().isEmpty()) {
throw new CaosDBException("The path must not be null or empty!");
}
caosdb.server.utils.FileUtils.createSymlink(
getUploadFilesDir().toPath().resolve(f.getPath()).toFile(), f.getFile());
File link = getUploadFilesDir().toPath().resolve(f.getPath()).toFile();
if (!link.getParentFile().exists()) {
link.getParentFile().mkdirs();
}
caosdb.server.utils.FileUtils.createSymlink(link, f.getFile());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment