In Teams migration, you will only be able to migrate the files/folders which are in the Teams’ associated channels. To migrate the remaining folders in the document library, you can go with the SharePoint site migration. For. E.g. Refer the below image.