jade.utils.utils.check_filename

jade.utils.utils.check_filename(name)[source]

Validates that a name is valid for use as a filename or directory. Valid characters: letters, numbers, underscore, hyphen, period

Parameters:

string (str,) – A given string.

Raises:

InvalidParameter – Raised if the name contains illegal characters or is too long.