Problem creating directories in TFile

From: James Jackson <James.Jackson_at_cern.ch>
Date: Wed, 28 Mar 2007 13:07:15 +0100


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();
file->cd("Dir1");
file->mkdir("Dir2");
file->cd("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.

Any help appreciated,

Regards,
James Jackson Received on Wed Mar 28 2007 - 14:07:31 CEST

This archive was generated by hypermail 2.2.0 : Fri Mar 30 2007 - 17:50:02 CEST