How to copy all files from folder and subfolder using python | Os & Shutil module | Python magic

Veröffentlicht am: 29 August 2022
auf dem Kanal: LearningWithSumon
50
2

Assalamualikum, WhasUp everyone!!, Today we will start our new playlist Python Magic.


source code :

#copy files from multiple folders

import os
import shutil

des_folder = r'F:\youtube_projecct2022\python_magic\des'

for root, dirs, files in os.walk('F:\youtube_projecct2022\python_magic\my_files'):
print(files)
for file in files:
print(file)
path_file = os.path.join(root,file)
print(path_file)
shutil.copy2(path_file,des_folder)

______________________________________________________
Python is one of the best languages used by data scientists for various data science projects/applications. Python provide great functionality to deal with mathematics, statistics and scientific function

See My Other Videos 👇👇:


Web development tutorial:
   • Web Development Tutorial  


Python in One Video 2022:
   • Python in One Video 2022 | Bangla | With O...  

Python Full Course In One Video:
   • Python Beginner to  Advanced Level In One ...  



Python in One video Bangla:
   • Python Beginner to  Advanced Level In One ...  

Bootstrap in One Video:
   • Bootstrap 5  in One Video | Web Developmen...  

Learn JavaScript in One Video:
   • JavaScript tutorial in one video |for Abso...  

Python Projects (full PlayLists):
https://youtube.com/playlist?list=PLa...

Web Development with Python(Flask) :
https://youtube.com/playlist?list=PLa...


Python Object Oriented Programming full Playlists:
https://youtube.com/playlist?list=PLa...


Game Development With Python:
   • Pygame  


pycharm install:
   • Python & PyCharm Installation | Python | A...  

python install:
   • Python Installation & Python Shell | Pytho...  

Vs code install:
   • Visual Studio Code(Vs Code) Installation |...  


Auf dieser Seite können Sie das Online-Video How to copy all files from folder and subfolder using python | Os & Shutil module | Python magic mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer LearningWithSumon 29 August 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 50 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!