Return `true` if a file path ends with the given string.