protected function _basename($path) { $parts = explode($this->separator, trim($path, $this->separator)); return array_pop($parts); }