Go "Up" a folder level?

Marcos's icon

Interested in a way to go up a folder level...For example if I provide: "MacBook HD:/Users/Marcos/Music/Portishead/Dummy/" without quotes, I get "MacBook HD:/Users/Marcos/Music/Portishead/"
in return. I'm sure some C or javascript would be the best way to do this, but I'm not that proficient in either of these. Anyone care to try?

marcos

.mmb's icon

I'm a little unclear by what you mean. What are you feeding the path into that's giving you back a shorter path? Or maybe, what are you trying to get to move up a folder level?

Marcos's icon

I WANT to get back a shorter path...I am finishing my playlist touchscreen interface, and I want a "Back" button to go "Up" a folder...just how you would hit back in Finder or in Explorer...I am looking for a way to do this

.mmb's icon

Ah, I see. You could feed the path into [regexp (.+)/.+] to lop off the last folder in the path.

edit: comes out the second outlet.

Marcos's icon

Thank you sir, works nicely. Mind checking my other regexp thread haha