Problem with case insensitive volumes

Scott David Daniels Scott.Daniels at Acm.Org
Tue May 5 10:02:32 EDT 2009


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.Daniels at Acm.Org



More information about the Python-list mailing list