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

[ad_1]

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.

[ad_2]

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