what about replacing `rtrim(ltrim($mountPoint, '/'), '/')` with `trim($mountPoint, '/')` ?