I need help with trying to figure out how to make a loop that goes down 1 file every time the loop is done.

I need help with trying to figure out how to make a loop that goes down 1 file every time the loop is done.
I'm unsure what you are trying to accomplish so I cannot provide a more complete answer.
However, If you are looping through files, you just need to create the "files" object and then loop over that object...
For each file in Files.