public static void SetAccessControl(string path, DirectorySecurity directorySecurity)
 {
     if (_provider == null)
     {
         Directory.SetAccessControl(path, directorySecurity);
     }
     else
     {
         _provider.SetAccessControl(path, directorySecurity);
     }
 }