Skip to content
Advertisement

Loop doesn’t works on a moving file script

I’m quite new to Python and I don’t understand why this code crashes without doing anything. It basically moves a file from one folder to another with a message and a delay, and so on.

JavaScript

What did I do wrong?

Advertisement

Answer

This should work, but don’t forget it will override same named files, if you don’t want this you have to check before moving.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement