problem with glob in remote directory or os.walk in remote directory in windos

Steve Holden steve at holdenweb.com
Fri Feb 27 08:05:23 EST 2009


lameck kassana wrote:
> At last i did it it was this wrong line file_count += len(files) ---it
> supposed to be  file_count+=1
> but thanks for help ya python masters .Steven Holden ,,,, thanks very
> very much for your tip about raw string
> 
Lameck:

Please note that

file_count = 0
for files in (...):
    file_count += 1

can be *much* more efficiently expressed as

file_count = len(...)

regards
 Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/




More information about the Python-list mailing list