Misleading example in docs edited.

It took me some time to realize fileList and dirList should be wrapped in task object.