Entry type

Added an 'entryType' option that allows to choose if data events on the stream should be sent for 'files' (default), 'directories' or 'both'.