vampire.model._check_prohibited_char

vampire.model._check_prohibited_char(text, input_type='path')[source]

Checks if path contains characters prohibited by the operating system.

Parameters
textstr

Path of file or directory.

input_typestr, optional

Type of input text. Default 'path'.

'path'

Input text as a path (of either directory or filename). Should not contain any of ,*"<>|

'file'

Input text as filename only. Should not contain any of \/,:*"<>|

Raises
ValueError

If text contains prohibited character.