Maybe something like this ?
The Path is a directory where your three main folders (Apr'19, May'19, Jun'19) exist.
So if based on the code above, the code assumes that :
There is a folder name "MAIN" on the desktop.
There are three folders in MAIN folder which are Apr'19, May'19 and Jun'19 folder.
There is no other folder and there isn't any file inside MAIN folder.
Inside Apr'19 folder there is 3 sub-folders which are : Apple, Orange and Tomoto folder
There is no other folder and there isn't any file inside Apr'19 folder.
Inside May'19 folder there is 3 sub-folders which are : Apple, Orange and Tomoto folder
There is no other folder and there isn't any file inside May'19 folder.
Inside June'19 folder there is 3 sub-folders which are : Apple, Orange and Tomoto folder
There is no other folder and there isn't any file inside Jun'19 folder.
Whatever inside the Apple folder will be moved to a new folder
Whatever inside the Orange folder will be moved to a new folder
Whatever inside the Tomoto folder will be moved to a new folder
That's if I'm not mistaken to get what you mean.
Which actually I don't quite understand this :
Currently
Main Folder Name Sub Folder
Apr'19 Apple
Apr'19 Orange
Apr'19 Tomotto
How is it possible that there are folder with a same name in one directory ?
So my guessing that what you mean is :
There is ONE folder with a name : Apr'19,
where inside this Apr'19 folder there are three folders with a name Apple, Orange, and Tomotto.
Bookmarks