AnsweredAssumed Answered

Check parent

Question asked by tomoconnell on Nov 27, 2013
Im writing a script that runs from a rule whenever a folder or file is created.

I'm just having trouble with a certain if statement.
If the new document/folder that triggered this script to run's parents parent directory is a specific name or node then run my code.

For example:
RootFolder/SubFolder1 TAP/SubFolder2/

I need it to check if the new folder/file is two levels below SubFolder1

So if i made a new folder underneath /SubFolder2/ then it the statement would be true, but anywhere else would be false.

In this scenario i don't know what the name of the new folder being created or the one directly above it are.