Filtering File Types

Does anyone have a good method for filtering out specific file types? I feel like I’ve seen this written somewhere before but can’t find. Basically, we put nuke script copies in the render output, and when people drag a render folder into RV, it always throws the error on the .nk file. What’s the recommended way to ignore these files?

Thanks!