(self)
return parts[-1]
The final path component, if any.
The final path component, if any.
The final path component if any .
def name(self):
        """The final path component, if any."""
        parts = self._parts
        if len(parts) == (1 if (self._drv or self._root) else 0):
            return ''
        return parts[-1]
def name ( self ) : parts = self . _parts if len ( parts ) == ( 1 if ( self . _drv or self . _root ) else 0 ) : return '' return parts [ - 1 ]