RE: Filename too long error

2006-12-05 Thread Tim Golden
[Moqtar] | I am trying to walk a directory and print the file and its modified | time. When the path is longer then 259 characters i get an error | "Filename too long". I guess these is because windows limitation on | path length. | | My code: | [... snip code ...] | | Traceback (most recent

Filename too long error

2006-12-04 Thread Moqtar
I am trying to walk a directory and print the file and its modified time. When the path is longer then 259 characters i get an error "Filename too long". I guess these is because windows limitation on path length. My code: import os import time for root,dirs,files in os.walk(directory):