Make subfiles imitate folder name

Hey. Is it possible with hazel? Hazel monitors a folder with downloaded folders with sub files and I want to name the sub files the same as the folder they are in without changing the extension of course.
So i have:
Folder1 with File1.avi inside and i want the subfile to be named Folder1.avi
So i have:
Folder1 with File1.avi inside and i want the subfile to be named Folder1.avi