FileConnector

javadoc

FileConnector is a service that crawls thru a folder and publishes one document for each found file.

Example for develop:

#file : FileConnector.py edit raw

# FileConnector crawler
# Crawls a directory and publishes a docment for each files found
def onDocument(doc):
    print(doc)
fc = Runtime.start("fc","FileConnector")
fc.addListener("publishDocument","python","onDocument")
# start crawling
fc.setDirectory(".myrobotlab")
fc.startCrawling()
sleep(5)
fc.stopCrawling()