I want to copy all files named alertmap
to a new location with the same name as of its parent folder( or within a new folder named the same as its parent folder).
import glob
for file1 in glob.glob("C:\\Users\\mabrol\\Desktop\\boxing\\*\\AlertMap1.txt"):
print(file1)
for file2 in glob.glob("C:\\Users\\mabrol\\Desktop\\boxing\\*\\AlertMap1.txt"):
print(file2)