Does anyone know how to programatically find the path to the above directory please?