Hi James!
> I have a TFile, within which I create a directory (e.g. with file-
> >mkdir("Dir1")). If, from another section of my code, and given a
> pointer to the file object, I run the following code:
>
> file->cd();
This sets gDirectory = file.
> file->cd("Dir1");
This makes the previous line superfluous by setting gDirectory to file:/Dir1.
> file->mkdir("Dir2");
This tells file to create a new subdirectory, which will of course be file:/Dir2. Should you have used gDirectory->mkdir("Dir2") that would have been different.
> file->cd("Dir2");
This sets gDirectory to file:/Dir2
> The result is that Dir2 is created under the file 'root' directory,
> and not as a subdirectory of Dir1. This is with version 5.13.04e.
>
I don't see anything wrong here...
Ciao,
Roland
-- TU Muenchen, Physik-Department E18, James-Franck-Str., 85748 Garching Telefon 089/289-12575; Telefax 089/289-12570 -- CERN office: 892-1-D23 phone: +41 22 7676540 mobile: +41 76 487 4482 -- Any society that would give up a little liberty to gain a little security will deserve neither and lose both. - Benjamin Franklin -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GS/CS/M/MU d-(++) s:+ a-> C+++ UL++++ P+++ L+++ E(+) W+ !N K- w--- M + !V Y+ PGP++ t+(++) 5 R+ tv-- b+ DI++ e+++>++++ h---- y+++ ------END GEEK CODE BLOCK------Received on Wed Mar 28 2007 - 20:22:32 CEST
- application/pkcs7-signature attachment: smime.p7s
- application/pgp-signature attachment: This is a digitally signed message part
This archive was generated by hypermail 2.2.0 : Wed Mar 28 2007 - 23:50:01 CEST