Selecting one folder up in a path heirarchy

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
User avatar
foughtthelaw
Posts: 2
Joined: October 2nd, 2013, 12:23 pm

right now I'm using app.project.file.path which gives me something like this: say I have a project file at ~/desktop/my_project/ae_project_files
and I want to create an 'output' folder in ~/desktop/my_project/

how would I programmatically select a directory one up from the one my project file is in?
User avatar
foughtthelaw
Posts: 2
Joined: October 2nd, 2013, 12:23 pm

got a merciful hit from another forum. the answer looks so simple I'm almost embarased I had to ask.

app.project.flie.parent.parent
Post Reply