CB-5960: ios: android: Properly handle parent references in getFile/getDirectory