Matt is right, .getParent returns a string; Should be a file