spillz wrote:
os;walk will tell you the correct case for each node.   So if it gives
you a different case than the stored form, you have your answer.

Thanks, although I was hoping that wouldn't be the answer (I have to
compare a LOT of files).
What is so tough about something like:

base, dirs, files = next(os.walk(dirn))  # older: os.walk(dirn).next()
current = dict((name.upper() for name in dirs + files)
...
changed = some_name == current[some_name.upper()]
...

--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to