Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python copy all files in a folder to nother folder

import shutil
import os
 
# path to source directory
src_dir = 'fol1'
 
# path to destination directory
dest_dir = 'fol2'
 
# getting all the files in the source directory
files = os.listdir(src_dir)
 
shutil.copytree(src_dir, dest_dir)
Comment

PREVIOUS NEXT
Code Example
Python :: pandas filter rows by value in list 
Python :: fiel to base64 python 
Python :: cvtcoloer opencv 
Python :: python temporaty files 
Python :: value_counts to list 
Python :: pandas fill missing values with average 
Python :: inverse matrice python 
Python :: python get min max value from a dictionary 
Python :: how to change a string to small letter in python 
Python :: download a file from kaggle notebook 
Python :: from PyQt5 import Qsci 
Python :: how to make a complex calculator in python 
Python :: pil overlay images 
Python :: python list subdirectories 
Python :: find null value for a particular column in dataframe 
Python :: pandas dataframe macd 
Python :: loop rought rows in pands 
Python :: all alphabets 
Python :: how to open csv file in python 
Python :: all possible combinations of parameters 
Python :: python open pickle file 
Python :: delete rows in dataframe pandas 
Python :: scikit learn svm 
Python :: replace error with nan pandas 
Python :: make first row column names pandas 
Python :: how to change icon in pygame 
Python :: python check numpy arrays equal 
Python :: how to swap tuple 
Python :: add role discord .py 
Python :: get last file in directory python 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =