splitpath should probably accept AbstractString as its doc mentions here
It fails now:
julia> path = "/folder1/folder2/folder3/file"
"/folder1/folder2/folder3/file"
julia> subpath = SubString(path, 9)
"/folder2/folder3/file"
julia> splitpath(subpath)
ERROR: MethodError: no method matching splitpath(::SubString{String})
Closest candidates are:
splitpath(::String) at path.jl:230
Stacktrace:
[1] top-level scope at REPL[3]:1
My versioninfo:
julia> versioninfo()
Julia Version 1.4.0-DEV.21
Commit 25a05f088d* (2019-08-20 21:46 UTC)
...