Skip to content

option to save/restore relative file paths #3631

@notestaff

Description

@notestaff

Currently, when a 'path' output of process A (e.g. param1/param2/data.csv) is passed as a 'path' input to a downstream process 'B', only the basename of the file (data.csv) is preserved; the path relative to task execution directory (param1/param2) is lost. This causes headaches whenever we adapt for Nextflow existing scripts that use paths to represent metadata. I often end up adding boilerplate code to manually save the full paths, pass them along as extra outputs, and restore them in subsequent steps. It would help if Nextflow had an option to save/restore the full relative paths automatically.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions