The Sharepoint trigger "When a file is created or modified" is triggered for both Folders as well as Files
So, when ones creates a new file, the trigger is fired once for the File, and once for the Folder if it happen to be created during that call. However, there is no output field in the trigger that indicates that the event was triggered for a File or a Folder.
Is there a work-around to differentate both cases? The only thing I can think of is to classify files as having at least a "." in the FileName With Extension field, but extensions are not a mandatory thing on some OSs (at least, I think so)