What was the reasoning behind making `getAllFilesF...
# nft-plugins
n
What was the reasoning behind making
getAllFilesFromPath
output only relative paths?
m
for me the reasoning was we need relative path, because we ran locally and CI, and I don't want failure. we could add this as an option indeed
n
Yes but this no longer creates valid md5sums, right? Or am I using the wrong function for that?
m
no, that is the function
this is what we have in sarek:
Copy code
// stable_name: All files + folders in ${outdir}/ with a stable name
        def stable_name = getAllFilesFromPath(outdir, relative: true, includeDir: true, ignore: ['pipeline_info/*.{html,json,txt}'])
        // stable_content: All files in ${outdir}/ with stable content
        def stable_content = getAllFilesFromPath(outdir, ignoreFile: 'tests/.nftignore', ignore: [scenario.ignoreFiles])
so with relative: true, and includeDir you get just filenames with relative paths
without, you get snapshots of all files
n
oh! I must have made a mistake then. I'll see if I can get it working