Hey, for your information, here is why your code is not working properly.
If a folder contains only images you can load all textures inside with: [folder_name] = {},
But if a folder contains subfolders and images you have to write the following: [folder_name] = { ["*"]={}, [subfolder_name] = {}, },