Published
- 1 min read
python how move file to directory
The solution for this is noted below
python how move file to directory
Solution
import shutil, os
files = ['file1.txt', 'file2.txt', 'file3.txt']
for f in files:
shutil.move(f, 'dest_folder')
Try other methods by searching on the site. That is if this doesn’t work