I have to loop through multiple folders and finally check if there are three folders in the final folders. If the three folders are present in the folder then do nothing,else print the folderpath or name.Im finding it difficult to make it work, Any suggestions are welcome,Thanks in advance
This is what i have at the moment,
check_empty =['One','Two','Three']
path = '/mnt/sdc1/Username/'
folders = next(os.walk('/mnt/sdc1/Mahajan/'))[1]
for folder in folders:
files_in_folders = os.listdir(path +folder)
for files_in in files_in_folders:
for files in os.listdir(path+folder+'/'+files_in):
for items in check_empty:
if files in check_empty:
print(folder +'Good')
else:
print(folder+'NotGood')