Custom texture importer for custom folder

I have been trying to create a custom texture importer for a specified folder, where every texture inside it will have certain settings applied. However, im not sure how to do so. I have been looking at TextureImporter and AssetPostprocessor, but i cannot get them to reference each other. Also had no luck making AssetDatabase do what i want. I wonder if anyone have a method for doing this?

public class TexturePostProcessor : AssetPostprocessor
{
void OnPreprocessTexture()
{
if (assetPath.Contains(“folder_name_you_care_about”))
{
// do custom
}
}
}