I have 60 files and 20 folders in same directory. I want to move first three files to the first folder, next three files to another folder and so on.
Basically move 60 files in group of three into 20 folders.
I made a list including path for each file, but for the part that move them to folders I'm not sure what to do:
import os
import shutil
path = r'C:\.......\est Files'
destination = r'C:\.......\est Files
paths = []
for root, dirs, file in os.walk(path):
for name in file:
paths.append(os.path.join(root,name))
