Permalink
Browse files

Merge pull request #1074 from broadinstitute/symlink_dir_creation

Adding the symlink fix to the hotfix branch
  • Loading branch information...
2 parents ed3a155 + 32297a2 commit efe2bed328f2018c8f3b339ffc0997e5483f88df @scottfrazer scottfrazer committed on GitHub Jun 27, 2016
Showing with 4 additions and 1 deletion.
  1. +4 −1 engine/src/main/scala/cromwell/engine/backend/local/SharedFileSystem.scala
@@ -80,7 +80,10 @@ object SharedFileSystem {
Try(Paths.get(originalPath)) map { srcPath =>
if (srcPath.toFile.isDirectory)
Failure(new UnsupportedOperationException("Cannot localize directory with symbolic links"))
- else Files.createSymbolicLink(executionPath, srcPath.toAbsolutePath)
+ else {
+ executionPath.getParent.createDirectories()
+ Files.createSymbolicLink(executionPath, srcPath.toAbsolutePath)
+ }
}
}

0 comments on commit efe2bed

Please sign in to comment.