Gitlab Community Edition Instance

Commit abdaf054 authored by mhellka's avatar mhellka
Browse files

fix: Bagit LTS adapter fails if target directory is a symlink.

parent 8e3724a1
......@@ -106,8 +106,11 @@ public class BagitTarget implements LTSTarget, RuntimeListener {
@Override
public void onStartup(RuntimeContext ctx) throws Exception {
Files.createDirectories(path);
Files.createDirectories(tmpPath);
if (!Files.isDirectory(path))
Files.createDirectories(path);
if (!Files.isDirectory(tmpPath))
Files.createDirectories(tmpPath);
pool = ctx.lookupRequired(PoolService.class).getIOPool(path);
cron = ctx.lookupRequired(CronService.class);
}
......
Markdown is supported
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