I currently have for current_dir, dirnames, unfilenames in os.walk(input_dir):
which works fine. I'd like to be able to store an iteration variable i
.
for i, current_dir, dirnames, unfilenames in os.walk(input_dir):
returns the following error: ValueError: need more than 3 values to unpack
. How can I fix this?