Question: #need python code I have a directory called (D:Log_Archive). Under this directory, there are 4 subfolders(AKR, BKR, CKR, DKR). Each subfolder contains 10 files each.

#need python code

I have a directory called (D:\Log_Archive\). Under this directory, there are 4 subfolders(AKR, BKR, CKR, DKR). Each subfolder contains 10 files each. I need to copy these files(files under subfolder AKR, BKR, CKR, DKR) FROM D drive and paste them into another directory ( C:\Logs). This directory (C:\Logs) has too has same subfolders(AKR, BKR, CKR, DKR) but these are empty. So the objective is to copy files under subfolders and pastes them into subfolders of C drive. A file from D drive AKR has to be copied only to C drive AKR same with others. I need a python code for this.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!