Question Undo transfer

Feb 17, 2023
I put a new SD card in my Samsung phone because the memory was full. I went into the files and transferred photos to the new SD card not realizing they would all be combined instead of staying in their separate folders like they were in internal storage. Is there a way to undo the transfer I did and put the photos back into internal storage in their original folders so I can then figure out how to do the transfer correctly keeping them in their own folders?