Entering edit mode
7.0 years ago
eduardo
▴
10
One step in my workflow produces File[] and I need to filter to grab just one File for the next step. I am trying to use glob without much success. Any hints?
So this was something already answered by @Michael in one of the other posts? Generally good to link to the original when you do this.
Also accept your answer (green check mark) to provide closure to this question.
I tried to acknowledge Michael R. Crusoe, but I didn't found a way to link to a specific gitter message. Or were referring to this other post? Converting stdout (File) to string
I made another post because Converting stdout (File) to string was about converting a file to string. The solution is similar.
valueFrom: $( self.filter(file => !!file.basename.match(/^.*.ids.txt$/)).pop() )