Skip to content

Commit

Permalink
Make sure parent directory exists (#2437)
Browse files Browse the repository at this point in the history
  • Loading branch information
abretaud committed Apr 15, 2020
1 parent 2e5f86b commit 5e2bc0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions grails-app/services/org/bbop/apollo/FileService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ class FileService {
log.info("Archive includes a symlink outside the current path $entry.name -> ${dest.toString()}")
// throw new RuntimeException("Archive includes an invalid symlink: " + entry.getName() + " -> " + dest);
}
Files.createDirectories(path.getParent());
Files.createSymbolicLink(path, Paths.get(dest));
fileNames.add(destAbsPath.toString())
}
Expand Down

0 comments on commit 5e2bc0a

Please sign in to comment.