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
Get step-by-step solutions from verified subject matter experts
