Directory.GetFiles Doesn't return file

I've manually created a text file named AAAAA.txt in c: \ windows \ System32 when I execute the following code:

var sys32Files = Directory.GetFiles(@"C:\windows\System32");

      

It returns a bunch of files, but AAAAA.txt is not on this list. All permissions for the AAAAA.txt file are the same as for the files that are returned.

Can someone please explain what might be the problem here?

And yes, I work as an administrator.

+2


source to share


1 answer


+9


source







All Articles