[Paraview-developers] vtkPVServerFileListing::
FileIsReadable
Moreland, Kenneth
kmorel at sandia.gov
Wed Jan 12 15:55:25 EST 2005
Oh, yeah. This is on Win32. I meant to specify that and forgot.
When GetFileAttributes fails, it returns 0xFFFFFFFF. FileIsReadable is
not checking for that. Instead, it checks to see if the
FILE_ATTRIBUTE_NORMAL bit is set (which it is) and assumes the file
exists and is readable.
-Ken
> -----Original Message-----
> From: Brad King [mailto:brad.king at kitware.com]
> Sent: Wednesday, January 12, 2005 1:51 PM
> To: Moreland, Kenneth
> Cc: ParaView Developers
> Subject: Re: [Paraview-developers] vtkPVServerFileListing::
> FileIsReadable
>
> Moreland, Kenneth wrote:
> > vtkPVServerFileListing::FileIsReadable returns true if the
> file does
> > not exist. Is this the intended behavior.
>
> Interesting. On what platform do you observe this behavior?
> It has a separate UNIX/Windows implementation.
>
> -Brad
>
>
More information about the Paraview-developers
mailing list