On 02/15/2011 12:32 PM, Wanderer wrote:
             if f.find(fileBase)>  0:

.find() returns "-1" on failure, not 0. You want ">=" instead of just ">", or even more readably

  if fileBase in f:

-tkc




--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to