Poller polls subdirectory even though recursive is set to false

Details

Description

Poller polls subdirectory even though recursive is set to false because in the first call to pollFileOrDirectory processDir is set to true. Either the first call should use the value of property recursive or the processDir flag should be checked before starting to process the files in the directory.