protected function getParentPathString($pathString) { return implode('/', array_slice(explode('/', $pathString), 0, -2)) . '/'; }