Am new in Python and would like to do a task… I need to compare folder names from two folders dirfolder1 and dirfolder2… compare the folders in them and if they match…copy files and sub folders inside that matched folder…
thanks for your help.
Daddih.
You could do something like the following:
Basically, walk through each directory creating a list of its subdirectories, compare them, and for the matches, copy them (using copytree in case there are any subdirectories) into a third location.