Re: pathinfo is broken

new topic     » goto parent     » topic index » view thread      » older message » newer message
mattlewis said...
useless_ said...

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu