import shutil
import os
source_dir = '/path/to/source_folder'
target_dir = '/path/to/dest_folder'
file_names = os.listdir(source_dir)
for file_name in file_names:
shutil.move(os.path.join(source_dir, file_name), target_dir)
Code Example |
---|
Html :: write & in html |
Html :: how to change font size in html |
Html :: meta icon html |
Html :: bootstrap 5 align middle |
Html :: how to create a page break html |
Html :: html file |
Html :: commenting in html |
Html :: textarea placeholder |
Html :: howto include the single quotes in html |
Html :: add tab icon html |
Html :: html favicon tag |
Html :: gradient on top of image css |
Html :: how to make form not reload page |
Html :: accept zip codes in html |
Html :: audio tag disable download |
Html :: html center body |
Html :: bs4 monospace |
Html :: text color html |
Html :: share to facebook html link |
Html :: how to make a background color in html |
Html :: html void link |
Html :: hide audio controls html |
Html :: afjsi sein |
Html :: html page list out content of folder |
Html :: pass method to composite jsf component |
Html :: table align |
Html :: html checkbox checked |
Html :: html not displaying |
Html :: how to make an image a full background in html |
Html :: what is dir attribute in html |