TDirectory::pwd() question

Alexander Zvyagin (zvyagin_at_mx.ihep.su)
Mon, 17 May 1999 22:06:26 GMT+03:00


IHEP, Protvino, Russia, 17-MAY-1999

Dear ROOTers,

I have the question about this short root session:

root [0] TFile f("f.root","RECREATE");
root [1] f.mkdir("d")
(class TDirectory*)0x84e7ff0
root [2] f.cd("d")
(Bool_t)1
root [3] f.pwd()
f.root:/
root [4] gDirectory->pwd()
f.root:/d

Why f.pwd() and gDirectory->pwd() produce different results? Is it bug or
feature?

With best wishes,
Alexander.