How to send TFile or TDirectory through MPI?

How to send TDirectory with all objects in it from one MPI node to another ?

I assume that you want to transmit a TBuffer object containing all teh objects in the directory. If yes, create a TBuffer object and
call gDirectory->GetList()->Streamer(buffer).
If you use a TSocket style interface, you can send any object,
including a list via the TMessage class.