Detect when assets name is changed in editor?

I’m wondering if anyone could point me in the right direction to create an editor script that will run a method when an asset is renamed within the solution?

EDIT: Okay sorry about this I found it here:

public class TexturePostProcessor : AssetPostprocessor
{
TextureImporter importer = (TextureImporter)assetImporter;
    void OnPreprocessTexture()
    {
     importer.textureValuesAreHere;
    }

}

Since I’m using XML what I basically have to do is dynamically build in my game’s xml database a list of possible images used within a folder.