def name(self):
        """
        The entry’s base filename, relative to the scandir() path argument.

        Returns:
            str: name.
        """
        name = self._name.rstrip('/')
        if self._bytes_path:
            name = fsencode(name)
        return name
The entry’s base filename, relative to the scandir() path argument.

        Returns:
            str: name.