[Solved] How to copy all files with a particular prefix to new directories with python?


try pythons high level file operations library ( import shutil )

Also consider using pythons excellent directory walking function ( from os import walk )

You shouldn’t need to copy the files but just rename the directories and filenames.

solved How to copy all files with a particular prefix to new directories with python?