How to choose all files with the same extension in multiple subfolders in TFS 2018?

Asked

Viewed 23 times

0

In TFS 2018 release Definitions more specifically in the Archive task, I have several subfolders, which may or may not have more subfolders inside them, and I want the task to run only on top of the files with the same extension within the last folder level.

For a better view, my directory looks something like this: archives: index: items: readuario.txt test: txt list. directing: names: customers: ancient: men: relation.txt

My goal in this case is to use the Archive task to "zip" all files with the same extension, in the example: ". txt".

I tried with the "wildcards" and I did something like this: files/**/*. txt

I did not get the desired result, which would be the text files of the example.

  • You want to take the files in the last folder and compress or do this in the structure you put only with the extension files. txt?

  • I would like to do this in the whole structure.

  • I am ending this question by having done otherwise, I copied all the files to a third folder and only then compacted the files.

1 answer

0


I copied all the files to a third folder and only then compacted the files.

For this I used the "copy" task to take the selected files to another folder and from there I used the "Archive" task to finally compress the files.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.