Re: pathinfo is broken
- Posted by useless_ Apr 20, 2013
- 1424 views
gbonvehi said...
What version of Euphoria are you using?
Euphoria Interpreter v4.0.5 development Windows, Using Managed Memory Revision Date: 2013-02-11 02:10:21, Id: 5981:42b209901e89
gbonvehi said...
Edit: I've just checked 4.0.5 and the behavior is the same as you describe. It's definitely a bug in the documentation.
Instead, can pathinfo[1] be the entire path minus the filename? That's what i was looking for, in all the fury to make Euphoria easier, i still do
object savepath = reverse(cmd) savepath = savepath[match("\\",savepath)..$] savepath = reverse(savepath)
Altho i could use rmatch(), i have used the reverse method for 10 years or more. Yeas, there's other ways too.
useless