def _convert(fn, out_ext, out_folder, **kw):
    basename = get_default_extracted_folder(fn)
    from .validate import validate_converted_files_match
    if (not basename):
        print(("Input file %s doesn't have a supported extension (%s), skipping it" % (fn, SUPPORTED_EXTENSIONS)))
        return
    out_fn = _os.path.join(out_folder, (basename + out_ext))
    errors = ''
    if (not _os.path.lexists(out_fn)):
        with _TemporaryDirectory(prefix=out_folder) as tmp:
            try:
                extract(fn, dest_dir=tmp)
                file_list = _collect_paths(tmp)
                create(tmp, file_list, _os.path.basename(out_fn), out_folder=out_folder, **kw)
                (_, missing_files, mismatching_sizes) = validate_converted_files_match(tmp, _os.path.join(out_folder, fn))
                if (missing_files or mismatching_sizes):
                    errors = str(ConversionError(missing_files, mismatching_sizes))
            except Exception as e:
                errors = str(e)
    return (fn, out_fn, errors)
def _convert(fn, out_ext, out_folder, **kw):
    basename = get_default_extracted_folder(fn)
    from .validate import validate_converted_files_match
    if (not basename):
        print(("Input file %s doesn't have a supported extension (%s), skipping it" % (fn, SUPPORTED_EXTENSIONS)))
        return
    out_fn = _os.path.join(out_folder, (basename + out_ext))
    errors = 
    if (not _os.path.lexists(out_fn)):
        with _TemporaryDirectory(prefix=out_folder) as tmp:
            try:
                extract(fn, dest_dir=tmp)
                file_list = _collect_paths(tmp)
                create(tmp, file_list, _os.path.basename(out_fn), out_folder=out_folder, **kw)
                (_, missing_files, mismatching_sizes) = validate_converted_files_match(tmp, _os.path.join(out_folder, fn))
                if (missing_files or mismatching_sizes):
                    errors = str(ConversionError(missing_files, mismatching_sizes))
            except Exception as e:
                errors = str(e)
    return (fn, out_fn, errors)