This is problematic if the script was run from the root directory since the URLs will be scanned the directories recursively. Ultimately leading to a situation where the entire FileSystem is scanned. This has been known to cause issues for some Docker installations.

Typically this is worked around by editing the the kafka-run-class script however I think we should handle this within Connect itself by excluding the root directory.