Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python move file

import shutil
import os
 
file_source = 'Path/Of/Directory'
file_destination = 'Path/Of/Directory'
 
get_files = os.listdir(file_source)
 
for g in get_files:
    shutil.move(file_source + g, file_destination)
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #python #move #file
ADD COMMENT
Topic
Name
3+6 =