File.Exists does not work as expected [closed]

0

I use the function File.Exists(path) and the path that happened to it, it does exist, but the result gives me false .

Another thing is that when I run the File.Create(path) I get the exception saying that I do not have permissions, but I'm an administrator with full permission.

    
asked by Vitaly 31.10.2016 в 13:06
source

1 answer

2

To check for files: File.Exists(path)

To verify the existence of directories: Directory.Exists(path)

    
answered by 31.10.2016 / 13:21
source