private function _getMainDirectoryName($sSource) { $_aPathParts = explode("/", $sSource); return $_aPathParts[count($_aPathParts) - 1]; }