def get_selection_text(self):
        """Return custom text according to selected paths."""
        ### reference the path selection in a local variable
        path_selection = self.path_selection

        ### if its has more than one items, the text
        ### is all the names of the paths joined by ', '

        if len(path_selection) > 1:
            text = pathsep.join(path.name for path in path_selection)

        ### otherwise...

        else:

            ### try assigning the name of the first path
            ### as the text
            try:
                text = path_selection[0].name

            ### if it fails, though, then use an empty
            ### string as the text
            except IndexError:
                text = ''

        return text
Return custom text according to selected paths.
nodezator/fileman/op.py