Re: pathinfo is broken
- Posted by useless_ Apr 22, 2013
- 1412 views
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.
Have you tried pathname?
Matt
Never heard of it. You are saying pathname isn't in pathinfo? Ironic. Did you know the "See also:" under http://openeuphoria.org/docs/std_filesys.html#_1345_pathinfo doesn't list pathname? Neither does http://openeuphoria.org/docs/std_filesys.html#_1354_dirname . In fact, it looks now like pathname() is an alias for dirname()?
I hit another similar situation an hour or so later, and shelved the whole project. I didn't start it to discover issues, or learn the OS, or learn the new keywords.
useless