Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. import os, shutil
  2. cur_dir = os.getcwd()
  3. move_dir = os.getcwd() + '\\pack'
  4. notmovepls = ['pack.bat', '_block.pyd', '1.py', '2.py', '3.py', '4.py', '5.py', '6.py', '7.py', '8.py', 'pack', 'Python', 'Python3']
  5. cur_files = [i for i in os.listdir(cur_dir) if i not in notmovepls]
  6. def in_folder():
  7.     for file in cur_files:
  8.         shutil.move(file, move_dir)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement