Skip to content

Function to get MD5sums of all files in directory that is an emitted element from a channel #30

Description

@jfy133

Example:

        then {
            def stablefiles = []
            file(process.out.db.get(0).get(1)).eachFileRecurse{ file -> if (!["database-build.log", "database.report.tsv", "timestamp", "taxonomy"].find {file.toString().endsWith(it)}) {stablefiles.add(file)} }
            assertAll(
                { assert process.success },
                { assert snapshot(
                        stablefiles
                    ).match()
                }
            )
        }

Where the process.out.db contains a directory and subdirectories with multiple files, and I want to exclude database-build.log, database.report.tsv, and timestamp because they are variable files

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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