Hi Robert,
It is not possible to change the title/name of a directory on disk.
You can write a small object in the directory instead.
Rene Brun
Robert Feuerbach wrote:
>
> Hi,
>
> I'd like to change the Title of a directory that has already been
> created. I seem to only be able to get the original title. Is there anyway
> around this? (Yes, it seems trivial but the title of a directory is being
> used -- however improperly -- to keep track of a little information for
> me.)
>
> Using ROOT 3.02/00 on a LinuxRH7.1 machine.
>
> Thanks,
> Rob
>
> Trivial test script:
>
> {
> TFile *file = new TFile("testthis.root","CREATE");
> TDirectory *my_dir = file->mkdir("my_dir","The first title");
> my_dir->SetTitle("Try another title");
> my_dir->Save();
> file->Write();
> file->Close();
> }
>
> --
> /***************************************************
> * Robert Feuerbach feuerbac@ernest.phys.cmu.edu *
> * CMU Physics Department (412) 268-2772 *
> * Pittsburgh, PA 15213 FAX: (412) 681-0648 *
> ***************************************************/
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:02 MET