If you're having problems with example_watch_folder.py you may need to increase the delay hack on line 55 to 15-20 seconds.
Without the increased delay, it would upload a zerobyte file for me. It's not clear why, but there is a delay between the creation of a file name and the setting of the file to the dataset.
Cheers,
Rob