Your wildcard would refer to a set of files, not a single file. You could use Dir::glob for this:
!Dir.glob('/folderOfFile/Filename*.ext').empty?
Your wildcard would refer to a set of files, not a single file. You could use Dir::glob for this:
!Dir.glob('/folderOfFile/Filename*.ext').empty?