Skip to contents

Stop if File Name Does not End with Zip Extension

Usage

check_zip_extension(file)

Arguments

file

path to file to check for .zip or .7z file name extension

Value

The function does not return anything but stops with a clear error message in case that file does not end with something that looks like the file extension of a compressed file.