Skip to content

getAllFilesFromDir() examples are confusing due to incomaptibliity of *.name pattern and relative: true #40

@jfy133

Description

@jfy133

The docs here: https://github.com/nf-core/nft-utils/blob/main/docs/usage.md#getallfilesfromdir

Say to use *.name to get the names of all files when recording just file names.

However if you add relative: true as an option, this doesn't work as you get an groovy.lang.MissingPropertyException: No such property: name for class: java.lang.String error.,

This makes sense I guess as you are not returning a relative path, but a string.

However this should be documented that this new relative option is NOT compatible with the *.name pattern; or to remove the recommandtion of using *name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions