0

I have implemented os.walk a ton of times until now, and it worked super fine.

But now, I need to implement os.walk on a folder, whose contents keeps on changing/updating every 10 secs (by another program). And, when I do os.walk on this folder, the program gets stuck there forever.

djot
  • 2,952
  • 4
  • 19
  • 28
scorpion35
  • 944
  • 2
  • 12
  • 30
  • 1
    Why are you walking over changing content? Is this a hard requirement? – Simeon Visser Oct 15 '13 at 17:12
  • yes sir :) this folder is located on our NAS and is being hit by many other programs 24/7. – scorpion35 Oct 16 '13 at 17:32
  • i was not done writing my comment above (damn 'enter' key :D). So, what I want to add is, I found another way of doing this. Robocopy the files I want to my local machine, and then do the walking. It works fine now, but, would definitely be useful to know how to walk over dynamically changing folder – scorpion35 Oct 16 '13 at 17:35

0 Answers0