On 21/08/12 06:42, Ray Jones wrote:

   Files = glob.iglob(os.path.join(znDir, '*'))
   print Files

   for moveFile in Files:
     print moveFile

Nothing happens. The 'print...moveFile' never happens, even though print
Files shows it to be an iglob generator object.

Good but does it contain anything?
If not the loop will never execute.
Did you try plain glob() which returns a list? Easier to see what the result set looks like.


--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to