Directory Contents filter

I’m attempting to use the Directory Contents node to filter a folder to only show .3dm files.
Using *.3dm as the filter will output both .3dm and .3dmbak files, but *.“3dm” returns an error. Is there something I’m missing here, this feels like one of those things where solution is right in front of me :sweat_smile:

This is a limitation of the system “EnumerateFiles” method: https://docs.microsoft.com/en-us/dotnet/api/system.io.directory.enumeratefiles?view=netframework-4.8

You could search for all .3dmbak and exclude them from the other list with Set Difference – otherwise you’ll have to write your own more sophisticated script:

image

1 Like