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