Added folder only option and file exclusion option, only tested with php connector.