yields a 'public' filepath from a filepath and a public dirpath