# start the service
fileconnector = Runtime.start("fileconnector","FileConnector")
@@ -1,37 +1,132 @@
 # 
-start the service%0Afileconnector
+FileConnector crawler%0A# Crawls a directory and publishes a docment for each files found%0Adef onDocument(doc):%0A    print(doc)%0Afc
  = R
@@ -144,12 +144,17 @@
 t(%22f
+c%22,%22F
 ile
-c
+C
 onne
@@ -162,21 +162,156 @@
 tor%22
-,%22FileConnector%22)
+)%0Afc.addListener(%22publishDocument%22,%22python%22,%22onDocument%22)%0A# start crawling%0Afc.setDirectory(%22.myrobotlab%22)%0Afc.startCrawling()%0Asleep(5)%0Afc.stopCrawling()%0A

Update FileConnector.py