I need to test isfile on a string. However, if the string is not a filename, it will almost always include question marks. This breaks in Julia 0.7 using Windows 10 Home but not previous versions. MWE below.
julia> str = "E?Z" "E?Z" julia> isfile(str) false
julia> str = "E?Z" "E?Z" julia> isfile(str) ERROR: IOError: stat: invalid argument (EINVAL) Stacktrace:  stat(::String) at .\stat.jl:68  isfile(::String) at .\stat.jl:303  top-level scope at none:0
What changed here? Is there a clean workaround?
I know that I could enclose the test in a try/catch statement, but considering how little overhead a Boolean test should require, this seems like an extremely clumsy and unhygienic kluge.
Thanks in advance for any suggestions.