Actions know know if they are refering to a folder.