K
K Viltersten
I'd like to know if a file, a path to which i provide,
is readable with respect to the access rights for
the currently logged-in user.
I've got stuck. After some heavy googling i've
come to the following but no further.
FileInfo file = new FileInfo( path );
FileSecurity fileSecurity = file.GetAccessControl();
I guess i need to connect it somehow with the
FileSystemRights.Read value but i simply don't see
how it should be done. Suggestions?
is readable with respect to the access rights for
the currently logged-in user.
I've got stuck. After some heavy googling i've
come to the following but no further.
FileInfo file = new FileInfo( path );
FileSecurity fileSecurity = file.GetAccessControl();
I guess i need to connect it somehow with the
FileSystemRights.Read value but i simply don't see
how it should be done. Suggestions?