message_directory.py will just pass on subfolders (alongside files) in the list of items it passes on when iterated. (And in any count of items in the queue.) It should probably filter out non-files.
There is an oblique reference to this in the sender.cfg: https://github.com/apel/ssm/blob/3.2.1-1/conf/sender.cfg#L44