Re: [ROOT] how to check if file exist on castor?

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Wed Dec 18 2002 - 16:38:40 MET


Hi Steven,

 with the latest version of ROOT you could do:

gSystem->GetPathInfo("rfio:/castor/cern.ch/user/r/rdm/file.root", ...);

to see if the file exists and what its key attributes are.

Cheers, Fons.


On Wed, 2002-12-18 at 16:25, PASSMORE Steven wrote:
> Hi,
> 
> could someone please tell me how I can check if a file exists on castor
> without getting an error message (something like 'rfstat', I would just
> like a return value indicating if it exists or not).
> I am using ROOT version 3.03.09 on solaris 5.7.
> 
> Thanks,
>     Steven
> *****************************
>    Mark Steven Passmore
>    EP ATE, 594-R-022
>    CERN
>    CH - 1211 Geneva 23
>    Tel. 0041 22 767 3871
> *****************************
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



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