Skip to content

Commit 1406b49

Browse files
committed
Follow links when copying node output to staging area
1 parent d5a8e77 commit 1406b49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/eu/slipo/workflows/tasklet/CopyOutputTasklet.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ private void extractToTargetDirectory(ZipFile zip, Path source) throws IOExcepti
144144
private void copyToTargetDirectory(Path outputDir, Path source) throws IOException
145145
{
146146
Path target = targetDir.resolve(source);
147+
147148
Path path = outputDir.resolve(source);
149+
path = path.toRealPath(); // follow symbolic links (if any)
148150

149151
// Create nested directory structure for target (if needed)
150152

0 commit comments

Comments
 (0)