Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Mar : EMC SAN with FileExists and DirectoryExists?

www.cryer.info
Managed Newsgroup Archive

EMC SAN with FileExists and DirectoryExists?

Subject:EMC SAN with FileExists and DirectoryExists?
Posted by:"Mark Tiede" (mtie..@mjwcorp.com)
Date:Fri, 28 Mar 2008 10:01:31

I have a customer trying to use our product.  One of my apps is an ISAPI
app.  It is doing a logonasuser and impersonate and then reading files in a
directory.  The problem is that it can't see the files.  Nor the directory
they are in.  Someone can login as the impersonated user on the IIS box and
have no problem accessing the files via File Explorer.

My app is just doing a FileExists on the file of interest and if that fails
it does a DirectoryExists on the directory that is supposed to contain the
file.  Both of these fail.  I see by looking at the code that they both
resolve to GetFileAttribute calls.

Does anyone know what kind of problems there might be when using
GetFileAttribute with an EMC SAN?

Replies:

www.cryer.info
Managed Newsgroup Archive