Alright, I\'m working with a Bioloid Premium humanoid robot, and Mac OS X will not recognize it. So I wrote a Python script to detect changes in my /dev/ folder because any
You need to iterate over os.walk()
:
for root_o, dir_o, files_o in os.walk(top):
or store the iterator first, then loop:
walker = os.walk(top)
for root_o, dir_o, files_o in walker:
The return value of the callable is a generator function, and only when you iterate over it (with a for
loop or by calling next()
on the iterator) does it yield the 3-value tuples.