mburton2

Untitled

Sep 9th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. import shutil
  2. import os
  3. src = "/c:/users/mick/temp"
  4. src2 = "c:/users/mick"
  5. dst = "/c:/users/mick/newfolder1/"
  6.  
  7. for files in src and src2:
  8.     if files.endswith(".txt"):
  9.         shutil.copy(files, dst)
Advertisement
Add Comment
Please, Sign In to add comment