Editor Plugin - Copy Materials from a to b

I am having a hard time to find the right way to do this… Maybe you can give me some hints or guidiance ?

What the Plugin should do:

get all materials from FolderA and Move them to FolderB
the existing Materials should be replaced
also the Texture used by the materials have to be moved to a new Folder

Thanks !


#include “Engine\Texture2D.h”
UTexture2D move(UTexture2D indata)
//copy file??
FILE *read;
//…do more
FILE *write;
//…do more

return indata;   // copy textur?


i am confused about your answer…

actually i wnat to do the same as the Drag&Drop, Move the Materials and also redirect the references