This is an unfortunate legacy from the Unix stat() and access() calls that return 0 in case of success. I agree that it would have been better to have them return kTRUE if the path/file exists instead of the other way around. However, changing the semantics now will break a lot of code. Cheers, Fons. Norbert Danneberg wrote: > > Hi, > > why does gSystem::GetPathInfo() return True (1) if the > path (file) does not exist and False (0) if it does > exist ? > > Norbert -- 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 7677910
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:24 MET