Re: [ROOT] OperDirectory in WinNT

From: Faine, Valeri (fine@bnl.gov)
Date: Thu Oct 03 2002 - 17:57:50 MEST


> Hallo, I should use OpenDirectory("path") on winNT but how do I specify
> the path? I tried OpenDirectory ("C:/dir1/dir2/") but it does not work.

Can you elaborate a little bit how did you work and how one can reproduce
the problem you
are complaining about.

See class
http://root.cern.ch/root/htmldoc/src/TFileSet.cxx.html#TFileSet:TFileSet .
It gives a good example how one can loop over the directory tree structure.

  Can you try and tell us what you see:

  void *dirp = gSystem->OpenDirectory("c:/dir1/dir2");
  if (dirp) printf(" file = %s\n", gSystem->GetDireEntry(dirp);

  Best regards, Valeri
>
>            many thanks
>                        Silvia
>



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:12 MET