Advertisement
Guest User

Untitled

a guest
May 27th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import glob, os, shutil
  2.  
  3. source_dir = os.getcwd()
  4.  
  5. #entries = os.listdir(source_dir)
  6.  
  7. files = glob.iglob(os.path.join(source_dir, "*.out"))
  8. for file in files:
  9. if os.path.isfile(file):
  10. shutil.copy2(file, "C:\\Users\\ZSO\\Desktop\\Bartosz Stasiak\\Obliczenia")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement