Rule any file does not include subfolders?!

Hi,
I have a folder with files and lots of subfolders including lots of more subfolders and files, so for example:
Mainfolder
_file1.jpg
_file2.jpg
_folder_a
__file3.jpg
__file4.jpg
__folder_aa
___folder_aaa
____file_100.jpg
I want to sort all files those files only in subfolders with pattern "date created". So my goal is something like that:
Mainfolder
_2022-05
__file1.jpg
__file2.jpg
__file3.jpg
_2022-01
__file4.jpg
_2021_10
__file100.jpg
My rule for Mainfolder is:
If all of the following conditions are met
- Any file
Do the following to the matched file or folder
- Sort into subfolder with pattern: date created
But the rule only works for file1.jpg and file2.jpg. All files simply remain in those subfolders.
I have a folder with files and lots of subfolders including lots of more subfolders and files, so for example:
Mainfolder
_file1.jpg
_file2.jpg
_folder_a
__file3.jpg
__file4.jpg
__folder_aa
___folder_aaa
____file_100.jpg
I want to sort all files those files only in subfolders with pattern "date created". So my goal is something like that:
Mainfolder
_2022-05
__file1.jpg
__file2.jpg
__file3.jpg
_2022-01
__file4.jpg
_2021_10
__file100.jpg
My rule for Mainfolder is:
If all of the following conditions are met
- Any file
Do the following to the matched file or folder
- Sort into subfolder with pattern: date created
But the rule only works for file1.jpg and file2.jpg. All files simply remain in those subfolders.