Answers for "how do i move a file from one directory to another in python"

5

python how move file to directory

import shutil, os
files = ['file1.txt', 'file2.txt', 'file3.txt']
for f in files:
    shutil.move(f, 'dest_folder')
Posted by: Guest on April-13-2021

Code answers related to "how do i move a file from one directory to another in python"

Python Answers by Framework

Browse Popular Code Answers by Language