Since I don’t have an up-to-date Windows environment, can I ask Windows users…?
"abc/def".basename
Is this def or abc/def?
I need it for something that isn’t a file path, where slashes will always be forward. I could write my own loop to find the last slash and split there, but there’s already a primitive…
I have an ancient SC 3.6.6 on an ancient Windows VirtualBox image, and it does treat the forward slash as a separator. I don’t think it should have changed…? But the backend support is from an OS function basename and I don’t know if the behavior of that system function has changed in the many years since I made that VM image. Probably didn’t but I’d sleep better not just assuming so.
Thanks!
hjh