Skip to content

Commit

Permalink
Resolve Fusion symlinks when publishing files
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <[email protected]>
  • Loading branch information
bentsherman committed Sep 26, 2023
1 parent 0f3e263 commit 815709c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import nextflow.Session
import nextflow.extension.FilesEx
import nextflow.file.FileHelper
import nextflow.file.TagAwareFile
import nextflow.fusion.FusionHelper
import nextflow.util.PathTrie
/**
* Implements the {@code publishDir} directory. It create links or copies the output
Expand Down Expand Up @@ -283,6 +284,12 @@ class PublishDir {
this.stageInMode = task.config.stageInMode
this.taskName = task.name

// resolve Fusion symlinks
if( FusionHelper.isFusionEnabled(Global.session as Session) ) {
final inputFiles = task.getInputFilesMap()
files = files.collect { inputFiles.getOrDefault(it.name, it) } as Set<Path>
}

apply0(files)
}

Expand Down

0 comments on commit 815709c

Please sign in to comment.