private function getEndPiece(string $fullPath) : string { $trimmedPath = \trim($fullPath . '/'); $arr = \explode('/', $trimmedPath); return \array_pop($arr); }