Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import shutil
- import os
- src = "/c:/users/mick/temp"
- src2 = "c:/users/mick"
- dst = "/c:/users/mick/newfolder1/"
- for files in src and src2:
- if files.endswith(".txt"):
- shutil.copy(files, dst)
Advertisement
Add Comment
Please, Sign In to add comment