This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import shutil | |
import os | |
def main(): | |
for root, dirs, files in os.walk(".", topdown=False): | |
for name in files: | |
if name.endswith('.bmp'): | |
thefile = os.path.join(root, name) | |
current_dir = os.getcwd() | |
shutil.move(thefile, current_dir) |
NewerOlder