Code :
import os
import os,shutil
flist = os.listdir(r'F:\test\ And debin Experimental comparison data set \arm')
print(flist)
for i in range(len(flist)):
l1 = os.listdir(r'F:\test\ And debin Experimental comparison data set \arm\\' + flist[i])
for j in range(len(l1)):
print(flist[i] +'-'+ l1[j])
shutil.copyfile(os.path.join(r'F:\test\ And debin Experimental comparison data set \arm\\' + flist[i],l1[j]),
os.path.join(r'F:\test\ And debin Experimental comparison data set \new_arm\\',flist[i] +'-'+ l1[j]))