Windows '.basename' -- ok for forward slashes too?

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

"abc/def".basename

returns:

-> def

on Windows 11 and SC3.15.0-dev

Perfect! Thanks for giving it a quick try.

hjh