What method do use to parse the Filename (multiple) parameter in python?
I currently use
source = FME_MacroValues='Param1']
if source.startswith('"'):
from shlex import split
fileList = split(sourcei1:-1])
else:
fileList= source]
but it feels clunky.
The assumption is that if it's a single file, it is not wrapped in quotes, but if it's multiple files it is:
""file1" "file2" "file3""