def val_file(cls, file_string):
        """
        Get and parse a file string

        Arguments
        ---------
        file_string: string
            string representation of file name

        Returns
        --------
        file: Path object | boolean
            validated file string
        """
        try:
            pv.validate_filename(file_string, platform='auto')
            str_file = pv.sanitize_filename(file_string, platform='auto')
            return str_file
        except ValueError as err:
            logger.error('Invalid file name')
            return False

        Get and parse a file string

        Arguments
        ---------
        file_string: string
            string representation of file name

        Returns
        --------
        file: Path object | boolean
            validated file string
        
crackq/validator.py