Skip to content

getAllFilesFromDir includeDir and exclude pattern are not comaptible with each other #33

@jfy133

Description

@jfy133

The current implementation of the function has a flaw in it in regards to includeDir and exclude.

If you includeDir, then it will include parent directory paths in addition to the files themselves as an independent entry in the final list.

However, if you give a directory path to nf-test, it will automatically look into that directory and check md5sums of all files in the directory.

The problem is that this conflicts with the exclude patterns: while the function generated list will exclude files matching the pattern, the inclusion of the directory path will cause nf-test to pick these supposedly excluded files again (and generated md5sums

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions