throw if trigger is a folder
0.2.2