tags:

views:

9

answers:

0

Hi,

I am trying to run GetFiles() and it is returning 0 files on NetWare/NSS file system. The file is definitely there. Is there some other code I can run on this file system. The same code runs fine if it is run on a Windows Server.

string[] s = System.IO.Directory.GetFiles(Environment.CurrentDirectory, "file.txt");
bool exists= s.Length>0;

Would it make a difference if I used the following?

FileInfo fi= new FileInfo(Path.Combine(Environment.CurrentDirectory, "file.txt"));
bool exists= fi.Exists;

If there are permission issues on file access, how would I get around this?