Should be renamed to 'getShareByPath'