Asset Client and BAM event publisher re fractor

You don't use skip the flow above. Hence, this will always get evaluated even though first if condition was through. Aslo ft there was a non *.json file, still the second statement get executed which get evaluated to false. I assume you need to first differentiate files and directories and organize the flow.