Added check to see if folder is going to be empty after moving files to the trash.