def test(self, target):
        """
        :param target: Full path and filename
        :return: boolean
        """
        path, filename = os.path.split(target)
        if self.case_sensitive:
            return filename.startswith(self.match_value)
        else:
            return filename.lower().startswith(self.match_value.lower())
def test ( self , target ) : path , filename = os . path . split ( target ) if self . case_sensitive : return filename . startswith ( self . match_value ) else : return filename . lower ( ) . startswith ( self . match_value . lower ( ) )
:param target: Full path and filename
        :return: boolean