[issue7017] os.listdir behaviour

2009-09-29 Thread Chris Adamson
Chris Adamson added the comment: I think I found my problem. Since I didn't *COPY* the array that I created with os.listdir I was actually appending to it, my bad. -- status: pending -> closed ___ Python tracker __

[issue7017] os.listdir behaviour

2009-09-29 Thread Mark Dickinson
Mark Dickinson added the comment: What's 'FileList' in your code? (It's not the same as 'fileList', since Python identifiers are case sensitive.) What's 'temporaryDirectory'? Please could you cut and paste an executable code snippet that exhibits the problem, along with any other instructions

[issue7017] os.listdir behaviour

2009-09-29 Thread Chris Adamson
New submission from Chris Adamson : When I iterate through a list created using os.listdir it seems to grow as I create files in that directory. I want a static copy of the list of files in the directory prior to me writing new files into it. Here is my code: fileList = os.listdir(temporaryDire